summaryrefslogtreecommitdiff
path: root/gtk/gtkcssselectorprivate.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-12-10 11:27:43 +0100
committerAlexander Larsson <alexl@redhat.com>2012-12-10 12:11:02 +0100
commiteb4667b6e1672043a9d9ff75a959e82b133618a7 (patch)
treeb3de73953df014d2312a329ba3c7513264be36f2 /gtk/gtkcssselectorprivate.h
parent03c626bb15277c41c11aaee5a6ac6f220a2c4be7 (diff)
downloadgtk+-eb4667b6e1672043a9d9ff75a959e82b133618a7.tar.gz
css: Do get_change directly on the tree without matching first
Rather than first collecting matches and then getting the change for them we do the change collection directly on the tree. This is about twice as fast.
Diffstat (limited to 'gtk/gtkcssselectorprivate.h')
-rw-r--r--gtk/gtkcssselectorprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssselectorprivate.h b/gtk/gtkcssselectorprivate.h
index cc7ec4b48f..17e3618d5f 100644
--- a/gtk/gtkcssselectorprivate.h
+++ b/gtk/gtkcssselectorprivate.h
@@ -42,6 +42,8 @@ int _gtk_css_selector_compare (const GtkCssSelector *a,
void _gtk_css_selector_tree_free (GtkCssSelectorTree *tree);
GPtrArray * _gtk_css_selector_tree_match_all (const GtkCssSelectorTree *tree,
const GtkCssMatcher *matcher);
+GtkCssChange _gtk_css_selector_tree_get_change_all (const GtkCssSelectorTree *tree,
+ const GtkCssMatcher *matcher);
void _gtk_css_selector_tree_match_print (const GtkCssSelectorTree *tree,
GString *str);
GtkCssChange _gtk_css_selector_tree_match_get_change (const GtkCssSelectorTree *tree);