Commit 3d1e2a05 authored by Benjamin Otte's avatar Benjamin Otte

cssstyle: Add optimization

There is no difference between a style and itself.
parent 399df06d
......@@ -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++)
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