Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 1143323011: Notify the counter code about layout object removals BEFORE removing. (Closed)

Created:
5 years, 6 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Notify the counter code about layout object removals BEFORE removing. This makes it possible to mark relevant objects for layout. Cannot mark unrooted subtrees for layout. Additionally, only notify when told to do so by the caller. Renamed the method to layoutObjectSubtreeWillBeDetached(), inspired by its layoutObjectSubtreeAttached() counterpart. For the sake of consistency, also only call layoutObjectSubtreeAttached() when actually told to notify. BUG=492490 R=dsinclair@chromium.org,eae@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196505

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -11 lines) Patch
A LayoutTests/fast/css/counters/remove-anonymous-block-wrapper-crash.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/counters/remove-anonymous-block-wrapper-crash-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutCounter.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutCounter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutObjectChildList.cpp View 3 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
mstensho (USE GERRIT)
This is a counter-proposal (no pun intended) to https://codereview.chromium.org/1144423007/ Usually when the counter code marked ...
5 years, 6 months ago (2015-06-04 07:19:52 UTC) #2
esprehn
That notify flag always seemed kind of sketchy, someday we should get rid of it. ...
5 years, 6 months ago (2015-06-04 08:22:31 UTC) #4
dsinclair
lgtm
5 years, 6 months ago (2015-06-04 13:36:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143323011/1
5 years, 6 months ago (2015-06-04 13:36:33 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 14:04:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196505

Powered by Google App Engine
This is Rietveld 408576698