csstypes: Change NTH_CHILD and NTH_LAST_CHILD change propagation
authorBenjamin Otte <otte@redhat.com>
Mon, 6 Jul 2015 01:58:56 +0000 (03:58 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 6 Jul 2015 13:33:50 +0000 (15:33 +0200)
commitdf7113812bbccc4ad862e1c931c8ba2c94d91c4a
tree8f8d9d135e973f549bb447979c633f25ef2e7874
parent69e396ea0ab6e25ebeb87ee55ea11d3a5c376f44
csstypes: Change NTH_CHILD and NTH_LAST_CHILD change propagation

For now assume that if those flags change for a node, they also changed
for all sibling nodes. This is not strictly true but simplifies
invalidation.

The reason it simplifies invalidation is that when removing or adding a
node, we can just invalidate the first node (for NTH_LAST_CHILD) and the
new node (for NTH_CHILD) and all the other nodes will be invalidated
automatically.
gtk/gtkcsstypes.c