cssstyle: Add optimization

There is no difference between a style and itself.
This commit is contained in:
Benjamin Otte 2015-02-22 18:04:43 +01:00
parent 399df06d19
commit 3d1e2a0558

View File

@ -82,6 +82,9 @@ gtk_css_style_get_difference (GtkCssStyle *style,
GtkBitmask *result;
guint i, len;
if (style == other)
return _gtk_bitmask_new ();
result = _gtk_bitmask_new ();
len = _gtk_css_style_property_get_n_properties ();
for (i = 0; i < len; i++)