DescriptionReset RestyleFlags when Element is removed.
The RestyleFlags are set based on selectors and DOM structure. Wether the
elements are attached or detached is irrelevant. Furthermore, when these
flags are reset, we must be sure all elements which may contribute to these
flags will have their style recalculated in order to set the flags properly.
That is not necessarily the case for attach/detach since siblings, or
descendants of siblings of the detached element will not have their style
recalculated in general.
Instead, reset RestyleFlags when an element is removed from its parent. If
the element is re-inserted into the DOM, siblings and sibling subtrees will
have the style recalculated to update the flags properly.
R=esprehn@chromium.org
BUG=376139
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175199
Patch Set 1 #
Total comments: 2
Messages
Total messages: 13 (0 generated)
|