mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
stylecontext: Remove excess gtk_css_node_invalidate() call
This call is not necessary, because gtk_css_node_set_parent() does the right thing. (It probably hasn't been necessary for years, but I'm not gonna try my luck on GTK3 at this stage.) This code is usually called the first time gtk_widget_get_style_context() is called on a widget and its style context gets create. At that point however, the css nodes are in the right place already, so no invalidation should happen.
This commit is contained in:
parent
631ea5caac
commit
e6a0a2f587
@ -1035,7 +1035,6 @@ gtk_style_context_set_parent (GtkStyleContext *context,
|
||||
priv->parent = parent;
|
||||
|
||||
g_object_notify_by_pspec (G_OBJECT (context), properties[PROP_PARENT]);
|
||||
gtk_css_node_invalidate (gtk_style_context_get_root (context), GTK_CSS_CHANGE_ANY_PARENT | GTK_CSS_CHANGE_ANY_SIBLING);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user