DescriptionDon't attempt to collapse empty anonymous blocks if they might already have been destroyed
LayoutBlock::addChild() can destroy its own object and that of any out-of-flow
or floating siblings - for that reason it's not safe to access the object or any
of its siblings after calling it. So when checking for an empty anonymous block
here, do so after removing its child and before we add it to its new home.
The check was introduced in wkbug.com/78250 and a follow-up wkbug.com/79681
so we have test coverage from those two CLs as well.
BUG=598722
Committed: https://crrev.com/6b42be50e95deed9f709348eec4d8b05cc552d17
Cr-Commit-Position: refs/heads/master@{#385009}
Patch Set 1 #Patch Set 2 : Updated #Patch Set 3 : Updated #Patch Set 4 : Updated #
Total comments: 1
Patch Set 5 : Updated #Patch Set 6 : Updated #
Messages
Total messages: 22 (10 generated)
|