Chromium Code Reviews
DescriptionIntroduce Node::needsDistributionRecalc and use it in ElementShadow to fix the wrong assertions.
This prevents a possible ASSERTION hit in ElementShadow::finalDestinationInsertionPointFor() (and one more)
if the given node is not in-a-document.
If a node is not in-a-document, the recalc flag of node.document() is not cleared even when node.updateDistribution() is called.
In other words, the following code is *wrong* if a node is not in-a-document.
> node.updateDistribution();
> ASSERT(!node.document().childNeedsDistributionRecalc()).
ElementShadow's finalInsertionPointsFor can be called for a node which is not in-a-document.
BUG=473000
TEST=Existing Layout tests. No behavior change except for assertion.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193176
Patch Set 1 #Patch Set 2 : git cl try #
Total comments: 2
Patch Set 3 : Fix Todo in the comment #
Messages
Total messages: 19 (4 generated)
|
|||||||||||||||||||||||||||||||||||||