Chromium Code Reviews
DescriptionMoved StyleElement::insertedIntoDocument into didNotifySubtreeInsertions.
We should avoid style-recalc during subtree insertions.
If invoke style-recalc, we might invoke createRenderer for elements that have not been inserted into document yet.
(i.e. the elements' inDocument flags are false).
The recalc also clears needsStyleRecalc flag. This blocks correct style-recalc.
TESTS=fast/dom/shadow/remove-and-insert-style.html
BUG=246300
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151825
Patch Set 1 #
Total comments: 6
Patch Set 2 : #
Messages
Total messages: 7 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||