mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 02:27:53 +00:00
cssnode: Add optimization
Don't even try to propagate changes when we know there are none.
This commit is contained in:
parent
2954417335
commit
f43543165b
@ -579,6 +579,9 @@ gtk_css_node_propagate_pending_changes (GtkCssNode *cssnode,
|
||||
if (style_changed)
|
||||
change |= GTK_CSS_CHANGE_PARENT_STYLE;
|
||||
|
||||
if (!cssnode->invalid && change == 0)
|
||||
return;
|
||||
|
||||
for (child = gtk_css_node_get_first_child (cssnode);
|
||||
child;
|
||||
child = gtk_css_node_get_next_sibling (child))
|
||||
|
Loading…
Reference in New Issue
Block a user