[gtk/matthiasc/css-change-tracking-2: 1/3] cssprovider: Keep selectors around
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/css-change-tracking-2: 1/3] cssprovider: Keep selectors around
- Date: Thu, 16 Jan 2020 22:19:53 +0000 (UTC)
commit 0a49726c73a74c15f0b38210194699e28d3147ba
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 16 13:20:47 2020 -0500
cssprovider: Keep selectors around
Don't remove selectors from the rulsets after
creating the selector tree. We want to use them
in future commits.
gtk/gtkcssprovider.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index b7d7fcf731..3713b83529 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1047,18 +1047,6 @@ gtk_css_provider_postprocess (GtkCssProvider *css_provider)
priv->tree = _gtk_css_selector_tree_builder_build (builder);
_gtk_css_selector_tree_builder_free (builder);
-
-#ifndef VERIFY_TREE
- for (i = 0; i < priv->rulesets->len; i++)
- {
- GtkCssRuleset *ruleset;
-
- ruleset = &g_array_index (priv->rulesets, GtkCssRuleset, i);
-
- _gtk_css_selector_free (ruleset->selector);
- ruleset->selector = NULL;
- }
-#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]