DescriptionMove line/continuation specific parts of willBeDestroyed() into LayoutBlockFlow.
Also moved beingDestroyed() down to LayoutBlockFlow, since it was no longer
called on other types.
Note that dirtyLinesFromChangedChild() is now called regardless of the object
having line boxes or not at the time of destruction. This should be safer and
more correct. If we're an inline-block, for instance, we definitely want to
notify our parent that we're going away, since that will affect the line box
tree in the parent. I assume that the reason why this hasn't been a problem
(use-after-free crashes, typically), is that the condition that previously
could block this from happening is never true. Looks like line boxes are always
deleted before we reach willBeDestroyed(). Added a TODO to investigate further.
We hopefully don't need that code.
BUG=302024
Committed: https://crrev.com/2266cecd4b7b660f4d4a494c6e61eaa8a2f8dc51
Cr-Commit-Position: refs/heads/master@{#393939}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 12 (3 generated)
|