diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-11-09 10:09:06 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-11-09 10:16:23 +0100 |
commit | e60c9219f1709b75ef6a7db91a3087127567d84a (patch) | |
tree | 0f425986841f09520695681e87758ee78498e31b /gtk/gtkcsslookupprivate.h | |
parent | 1c4158a6491e219f6b50c92c069bf432bda9f13c (diff) | |
download | gtk+-e60c9219f1709b75ef6a7db91a3087127567d84a.tar.gz |
Make _gtk_css_lookup_get_missing inline
This is called a lot in the loop in gtk_css_style_provider_lookup which
actually showed up on profiles.
Diffstat (limited to 'gtk/gtkcsslookupprivate.h')
-rw-r--r-- | gtk/gtkcsslookupprivate.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gtk/gtkcsslookupprivate.h b/gtk/gtkcsslookupprivate.h index aed2d51c85..8e8009758c 100644 --- a/gtk/gtkcsslookupprivate.h +++ b/gtk/gtkcsslookupprivate.h @@ -28,10 +28,21 @@ G_BEGIN_DECLS typedef struct _GtkCssLookup GtkCssLookup; +typedef struct { + GtkCssSection *section; + GtkCssValue *value; + GtkCssValue *computed; +} GtkCssLookupValue; + +struct _GtkCssLookup { + GtkBitmask *missing; + GtkCssLookupValue values[1]; +}; + GtkCssLookup * _gtk_css_lookup_new (const GtkBitmask *relevant); void _gtk_css_lookup_free (GtkCssLookup *lookup); -const GtkBitmask * _gtk_css_lookup_get_missing (const GtkCssLookup *lookup); +static inline const GtkBitmask *_gtk_css_lookup_get_missing (const GtkCssLookup *lookup); gboolean _gtk_css_lookup_is_missing (const GtkCssLookup *lookup, guint id); void _gtk_css_lookup_set (GtkCssLookup *lookup, @@ -47,6 +58,13 @@ void _gtk_css_lookup_resolve (GtkCssLookup GtkCssComputedValues *values, GtkCssComputedValues *parent_values); +static inline const GtkBitmask * +_gtk_css_lookup_get_missing (const GtkCssLookup *lookup) +{ + return lookup->missing; +} + + G_END_DECLS |