summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-09 22:03:13 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:31 +0100
commit507016cafc407b2c47aea3fd1483df75e9757f29 (patch)
treeccc744f661a37d0c21cf75e3b402ab1ffa6a40be /gtk/gtkcssnodeprivate.h
parent310f9f40dac12471197e33d745ae46dd0d8aeb22 (diff)
downloadgtk+-507016cafc407b2c47aea3fd1483df75e9757f29.tar.gz
cssnode: Refactor node tree modification code
This allows adding more API for it. It also includes code that tracks modifications and invalidates siblings and their positions whenever nodes get added or removed.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 4207d2ff56..b1339b0b9c 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -43,7 +43,6 @@ struct _GtkCssNode
GtkCssNode *next_sibling;
GtkCssNode *first_child;
GtkCssNode *last_child;
- guint n_children;
GtkCssNodeDeclaration *decl;
GtkCssStyle *style;
@@ -51,6 +50,7 @@ struct _GtkCssNode
GtkCssChange pending_changes; /* changes that accumulated since the style was last computed */
guint invalid :1; /* node or a child needs to be validated (even if just for animation) */
+ guint children_changed :1; /* the children changed since last validation */
};
struct _GtkCssNodeClass