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

Issue 1406163003: Fold out-of-flow objects into anonymous blocks when removing children (Closed)

Created:
5 years, 1 month ago by rhogan
Modified:
5 years, 1 month 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@523282-3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fold out-of-flow objects into anonymous blocks when removing children Sometimes when we remove a child we end up with a float or out-of-flow object beside an anonymous block. When that happens, fold the float/out-of-flow object into the anonymous box as that is where it would have lived if they were siblings in the first place. BUG=322039 Committed: https://crrev.com/44402d152cd0bb788db3136ab08c3c76ec348cd1 Cr-Commit-Position: refs/heads/master@{#357886}

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 3

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Total comments: 4

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Total comments: 2

Patch Set 7 : Updated #

Messages

Total messages: 25 (8 generated)
rhogan
5 years, 1 month ago (2015-10-29 18:23:30 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/1406163003/diff/20001/third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-into-anonymous-block-container.html File third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-into-anonymous-block-container.html (right): https://codereview.chromium.org/1406163003/diff/20001/third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-into-anonymous-block-container.html#newcode13 third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-into-anonymous-block-container.html:13: display: inline; Not needed. 'float' overrides this to 'block'. ...
5 years, 1 month ago (2015-10-29 20:00:26 UTC) #4
rhogan
On 2015/10/29 at 20:00:26, mstensho wrote: > I guess my question is: why don't we ...
5 years, 1 month ago (2015-10-29 22:53:39 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode738 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:738: if (prev && prev->isAnonymousBlock()) Don't we also need something ...
5 years, 1 month ago (2015-10-30 08:15:14 UTC) #6
rhogan
https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode738 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:738: if (prev && prev->isAnonymousBlock()) On 2015/10/30 at 08:15:14, mstensho ...
5 years, 1 month ago (2015-10-30 19:28:16 UTC) #7
mstensho (USE GERRIT)
https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode738 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:738: if (prev && prev->isAnonymousBlock()) On 2015/10/30 19:28:16, rhogan wrote: ...
5 years, 1 month ago (2015-11-02 12:31:58 UTC) #8
rhogan
https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode738 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:738: if (prev && prev->isAnonymousBlock()) On 2015/11/02 at 12:31:57, mstensho ...
5 years, 1 month ago (2015-11-02 19:38:05 UTC) #9
mstensho (USE GERRIT)
On 2015/11/02 19:38:05, rhogan wrote: > https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp > File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): > > https://codereview.chromium.org/1406163003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode738 > ...
5 years, 1 month ago (2015-11-02 21:35:24 UTC) #10
rhogan
On 2015/11/02 at 21:35:24, mstensho wrote: > Now remove #killMe. We end up with this: ...
5 years, 1 month ago (2015-11-03 19:28:39 UTC) #11
mstensho (USE GERRIT)
lgtm with my comments addressed. https://codereview.chromium.org/1406163003/diff/100001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1406163003/diff/100001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode378 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:378: static void addSubsequentFloatingOrOutOfFlowSiblingsToBlock(LayoutBlock* block, ...
5 years, 1 month ago (2015-11-03 20:53:18 UTC) #13
mstensho (USE GERRIT)
On 2015/11/03 20:53:18, mstensho wrote: > lgtm with my comments addressed. > > https://codereview.chromium.org/1406163003/diff/100001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp > ...
5 years, 1 month ago (2015-11-03 21:02:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406163003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406163003/110001
5 years, 1 month ago (2015-11-03 22:04:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/135500)
5 years, 1 month ago (2015-11-03 22:48:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406163003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406163003/110001
5 years, 1 month ago (2015-11-04 19:28:22 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 1 month ago (2015-11-04 20:34:31 UTC) #23
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/44402d152cd0bb788db3136ab08c3c76ec348cd1 Cr-Commit-Position: refs/heads/master@{#357886}
5 years, 1 month ago (2015-11-04 20:35:17 UTC) #24
inferno
5 years, 1 month ago (2015-11-05 16:05:04 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:110001) has been created in
https://codereview.chromium.org/1419053004/ by inferno@chromium.org.

The reason for reverting is: Causing use-after-free crashes in entire rendering
pipeline, reverting..

Powered by Google App Engine
This is Rietveld 408576698