summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-03-01 13:14:01 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:33 +0100
commitc7fba52a36092d16fcd38c87b6d2a29f160dc4ee (patch)
tree359740fbdbdfb496ef97d6bf167f1fb3b01046d1 /gtk/gtkcssnodeprivate.h
parent7395dddd47caff3c192fd7def3cc95e92191d98d (diff)
downloadgtk+-c7fba52a36092d16fcd38c87b6d2a29f160dc4ee.tar.gz
cssnode: Track invalid children
We need to properly track if a node needs to propagate invalidation state information to its children. We didn't do this properly before and that could lead to us forgetting to invalidate nodes in corner cases.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 00a106a8c2..611bc71b14 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -52,6 +52,7 @@ struct _GtkCssNode
guint visible :1; /* node will be skipped when validating or computing styles */
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 */
+ guint needs_propagation :1; /* children have state changes that need to be propagated to their siblings */
/* Two invariants hold for this variable:
* style_is_invalid == TRUE => next_sibling->style_is_invalid == TRUE
* style_is_invalid == FALSE => first_child->style_is_invalid == TRUE