mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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;
|
||||
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++)
|
||||
|
Loading…
Reference in New Issue
Block a user