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

Issue 1128713004: Don't mark a positioned object for layout when we've just laid it out. (Closed)

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

Description

Don't mark a positioned object for layout when we've just laid it out. When we mark positioned objects for layout while laying out lines or block flows we are assuming that any object we mark will get laid out later in the same layout. This is fine when we're walking a tree but the positioned objects list is not a tree and it's possible for elements in it to be out of DOM order. So if we layout the descendants of positioned object A and mark a positioned object while doing so we cannot assume that it will get laid out later; it may have already had its layout in this round. So to remove this assumption start bringing all the marking of positioned objects for layout back into layoutPositionedObjects. This CL starts by bringing in the objects from line layout. BUG=477940 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195813

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -21 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/positioning/setting-layout-on-posobjs-while-laying-them-out.html View 1 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/positioning/setting-layout-on-posobjs-while-laying-them-out-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/layout/LayoutBlock.cpp View 1 2 2 chunks +17 lines, -5 lines 0 comments Download
M Source/core/layout/LayoutBox.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/layout/LayoutBox.cpp View 1 2 chunks +0 lines, -10 lines 0 comments Download
M Source/core/layout/line/LineBreaker.cpp View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
rhogan
5 years, 7 months ago (2015-05-12 18:41:45 UTC) #2
leviw_travelin_and_unemployed
Sorry for the delay. I've been traveling/attending BlinkOn. I'll get to this tomorrow when I ...
5 years, 7 months ago (2015-05-18 22:30:10 UTC) #3
leviw_travelin_and_unemployed
A couple nits, but great job on this tricky stuff! LGTM with nits addressed. https://codereview.chromium.org/1128713004/diff/1/LayoutTests/fast/block/positioning/setting-layout-on-posobjs-while-laying-them-out.html ...
5 years, 7 months ago (2015-05-19 18:32:13 UTC) #4
rhogan
https://codereview.chromium.org/1128713004/diff/1/Source/core/layout/LayoutBlock.cpp File Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1128713004/diff/1/Source/core/layout/LayoutBlock.cpp#newcode1690 Source/core/layout/LayoutBlock.cpp:1690: // *after* we've laid it out in layoutPositionedObjects. On ...
5 years, 7 months ago (2015-05-20 20:15:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128713004/20001
5 years, 7 months ago (2015-05-20 20:15:58 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62426)
5 years, 7 months ago (2015-05-20 20:56:24 UTC) #10
leviw_travelin_and_unemployed
On 2015/05/20 at 20:15:06, robhogan wrote: > https://codereview.chromium.org/1128713004/diff/1/Source/core/layout/LayoutBlock.cpp > File Source/core/layout/LayoutBlock.cpp (right): > > https://codereview.chromium.org/1128713004/diff/1/Source/core/layout/LayoutBlock.cpp#newcode1690 ...
5 years, 7 months ago (2015-05-20 21:19:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128713004/40001
5 years, 7 months ago (2015-05-22 18:44:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128713004/60001
5 years, 7 months ago (2015-05-22 20:19:44 UTC) #17
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 21:57:19 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195813

Powered by Google App Engine
This is Rietveld 408576698