diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-09-28 01:43:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-09-28 06:29:51 -0400 |
commit | 130fc6ce9bb8e5df381b9e6956fb42ea889bb769 (patch) | |
tree | d983bd9bd52883d3d28eaf762db3b2f38653f804 /gtk/gtkcssstyleprivate.h | |
parent | ac198a3ce6548b59d7833add4ac8853060ab1b39 (diff) | |
download | gtk+-130fc6ce9bb8e5df381b9e6956fb42ea889bb769.tar.gz |
css style: Accumulate changes in place
This avoids allocating a temporary bitmask, and lets us
avoid some value comparisons altogether.
Diffstat (limited to 'gtk/gtkcssstyleprivate.h')
-rw-r--r-- | gtk/gtkcssstyleprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcssstyleprivate.h b/gtk/gtkcssstyleprivate.h index d3226a635a..ff0298082f 100644 --- a/gtk/gtkcssstyleprivate.h +++ b/gtk/gtkcssstyleprivate.h @@ -64,7 +64,8 @@ GtkCssValue * gtk_css_style_get_value (GtkCssStyle guint id); GtkCssSection * gtk_css_style_get_section (GtkCssStyle *style, guint id); -GtkBitmask * gtk_css_style_get_difference (GtkCssStyle *style, +GtkBitmask * gtk_css_style_add_difference (GtkBitmask *accumulated, + GtkCssStyle *style, GtkCssStyle *other); gboolean gtk_css_style_is_static (GtkCssStyle *style); |