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

Issue 1843213002: Don't attempt to collapse empty anonymous blocks if they might already have been destroyed (Closed)

Created:
4 years, 8 months ago by rhogan
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don'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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/lists/remove-listmarker-and-make-anonblock-empty.html View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/lists/remove-listmarker-and-make-anonblock-empty-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListItem.cpp View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
rhogan
4 years, 8 months ago (2016-03-30 19:40:54 UTC) #3
mstensho (USE GERRIT)
I was about to say the magic word, but it looks like this change introduces ...
4 years, 8 months ago (2016-03-31 10:29:40 UTC) #4
rhogan
On 2016/03/31 at 10:29:40, mstensho wrote: > I was about to say the magic word, ...
4 years, 8 months ago (2016-03-31 20:07:28 UTC) #5
rhogan
On 2016/03/31 at 20:07:28, rhogan wrote: > On 2016/03/31 at 10:29:40, mstensho wrote: > > ...
4 years, 8 months ago (2016-04-03 11:07:45 UTC) #6
mstensho (USE GERRIT)
Looks like you need to update the description now, since we actually DO look for ...
4 years, 8 months ago (2016-04-04 09:34:52 UTC) #7
rhogan
On 2016/04/04 at 09:34:52, mstensho wrote: > Looks like you need to update the description ...
4 years, 8 months ago (2016-04-04 18:19:01 UTC) #9
mstensho (USE GERRIT)
lgtm
4 years, 8 months ago (2016-04-04 18:24:08 UTC) #11
commit-bot: I haz the power
This CL has an open dependency (Issue 1602773005 Patch 220001). Please resolve the dependency and ...
4 years, 8 months ago (2016-04-04 18:24:58 UTC) #13
commit-bot: I haz the power
This CL has an open dependency (Issue 1602773005 Patch 220001). Please resolve the dependency and ...
4 years, 8 months ago (2016-04-04 18:25:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843213002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843213002/100001
4 years, 8 months ago (2016-04-04 18:32:53 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-04 21:18:28 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 21:20:39 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6b42be50e95deed9f709348eec4d8b05cc552d17
Cr-Commit-Position: refs/heads/master@{#385009}

Powered by Google App Engine
This is Rietveld 408576698