DescriptionDon't schedule invalidations when attributes changed if not needed or incorrect.
In particular, don't do it when attributes changed if there
is no style resolver or the style change type is subtree or
greater. In both of these cases, it will either have no
additional effect or the code is incorrect.
It could be incorrect if the element was not yet attached.
It could be not needed because if there is no style resolver,
re-making it will recalc the whole document's style. Also,
style invalidation cannot trigger a style that is greater than
subtree.
Also clear style invalidation bits unconditionally in Node::detach.
BUG=366788
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173665
Patch Set 1 #Patch Set 2 : Added test. #
Total comments: 6
Patch Set 3 : Addressed comments from esprehn@ #Patch Set 4 : Add some styleChangeType() < SubtreeStyleChange checks in ContainerNode. #
Total comments: 2
Messages
Total messages: 15 (0 generated)
|