mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
csswidgetnode: Avoid some unnecessary work
The later code would just ref both styles and not do anything else.
This commit is contained in:
parent
f595c0dc1b
commit
2dca8f935c
@ -99,6 +99,9 @@ gtk_css_widget_node_validate (GtkCssNode *node)
|
|||||||
if (widget_node->widget == NULL)
|
if (widget_node->widget == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (node->style == widget_node->last_updated_style)
|
||||||
|
return;
|
||||||
|
|
||||||
style = gtk_css_node_get_style (node);
|
style = gtk_css_node_get_style (node);
|
||||||
|
|
||||||
gtk_css_style_change_init (&change, widget_node->last_updated_style, style);
|
gtk_css_style_change_init (&change, widget_node->last_updated_style, style);
|
||||||
|
Loading…
Reference in New Issue
Block a user