Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(11)

Issue 1174373003: Deregister image client in LayoutObject::willBeDestroyed() (Closed)

Created:
4 years, 10 months ago by trchen
Modified:
4 years, 10 months ago
CC:
blink-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, blink-reviews-rendering, jchaffraix+rendering
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Deregister 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -29 lines) Patch
M Source/core/layout/LayoutObject.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/layout/LayoutObject.cpp View 4 chunks +23 lines, -27 lines 1 comment Download
M Source/core/layout/LayoutPart.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174373003/1
4 years, 10 months ago (2015-06-16 03:54:32 UTC) #2
trchen
https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp File Source/core/layout/LayoutObject.cpp (left): https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp#oldcode2554 Source/core/layout/LayoutObject.cpp:2554: // It seems ugly that this is not in ...
4 years, 10 months ago (2015-06-16 04:05:55 UTC) #4
Chris Evans
On 2015/06/16 04:05:55, trchen wrote: > https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp > File Source/core/layout/LayoutObject.cpp (left): > > https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp#oldcode2554 > ...
4 years, 10 months ago (2015-06-16 04:35:19 UTC) #5
Xianzhu
On 2015/06/16 04:35:19, Chris Evans wrote: > On 2015/06/16 04:05:55, trchen wrote: > > > ...
4 years, 10 months ago (2015-06-16 04:51:56 UTC) #6
Xianzhu
lgtm
4 years, 10 months ago (2015-06-16 05:00:28 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-16 05:03:33 UTC) #9
trchen
I think we can land and see if it sticks. Let me know if you ...
4 years, 10 months ago (2015-06-16 20:48:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174373003/1
4 years, 10 months ago (2015-06-16 20:49:12 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=197193
4 years, 10 months ago (2015-06-16 20:54:21 UTC) #13
Noel Gordon
On 2015/06/16 04:05:55, trchen wrote: > https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp > File Source/core/layout/LayoutObject.cpp (left): > > https://codereview.chromium.org/1174373003/diff/1/Source/core/layout/LayoutObject.cpp#oldcode2554 > ...
4 years, 10 months ago (2015-06-28 14:04:05 UTC) #14
Noel Gordon
4 years, 10 months ago (2015-06-28 14:04:27 UTC) #16
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698