DescriptionDeregister image client in LayoutObject::willBeDestroyed()
Before this CL, LayoutObjects deregister themself from the style images
until the last moment when the object is deleted. This causes problems
with LayoutParts because undetached LayoutPart is not deleted until all
references are deleted (namely, from FrameView), but they are technically
destroyed (with no associated Node object). This creates a small time frame
where a fetched image can invoke LayoutObject::imageChanged() on a detached
object.
This CL moves the deregistration code to LayoutObject::willBeDestroyed(),
and LayoutObject::postDestroy() becomes a one liner, thus removed.
BUG=500054
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197193
Patch Set 1 #
Total comments: 1
Messages
Total messages: 16 (5 generated)
|
|||||||||||||||||||||||||||||||||||||