csswidgetnode: Avoid some unnecessary work

The later code would just ref both styles and not do anything else.
This commit is contained in:
Timm Bäder 2018-01-19 09:57:49 +01:00
parent f595c0dc1b
commit 2dca8f935c

View File

@ -99,6 +99,9 @@ gtk_css_widget_node_validate (GtkCssNode *node)
if (widget_node->widget == NULL)
return;
if (node->style == widget_node->last_updated_style)
return;
style = gtk_css_node_get_style (node);
gtk_css_style_change_init (&change, widget_node->last_updated_style, style);