cssstyle: Add optimization
There is no difference between a style and itself.
This commit is contained in:
parent
399df06d19
commit
3d1e2a0558
@ -82,6 +82,9 @@ gtk_css_style_get_difference (GtkCssStyle *style,
|
|||||||
GtkBitmask *result;
|
GtkBitmask *result;
|
||||||
guint i, len;
|
guint i, len;
|
||||||
|
|
||||||
|
if (style == other)
|
||||||
|
return _gtk_bitmask_new ();
|
||||||
|
|
||||||
result = _gtk_bitmask_new ();
|
result = _gtk_bitmask_new ();
|
||||||
len = _gtk_css_style_property_get_n_properties ();
|
len = _gtk_css_style_property_get_n_properties ();
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user