Commit 6e6cbd73 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

stylechange: Do the right thing when old and new style are equal

We don't need to compare all their CSS values to figure out that nothing
changed. We know that.
parent c904efef
......@@ -33,6 +33,10 @@ gtk_css_style_change_init (GtkCssStyleChange *change,
change->affects = 0;
change->changes = _gtk_bitmask_new ();
/* Make sure we don't do extra work if old and new are equal. */
if (old_style == new_style)
change->n_compared = GTK_CSS_PROPERTY_N_PROPERTIES;
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment