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

Issue 1915803004: Remove LayoutFlowThread stuff from line layout code. (Closed)

Created:
4 years, 7 months ago by mstensho (USE GERRIT)
Modified:
4 years, 7 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

Remove LayoutFlowThread stuff from line layout code. We used to force full line layout if we had a flow thread with no column sets. This may have made sense at some point in the past, where we created column sets on the fly during layout, but we don't do that anymore (because we don't mutate the layout tree structure during layout anymore). If we have no column sets, it means that we cannot have any lines, since there's no column content (because if there were, we'd have at least one column set). So it was a pointless (albeit harmless) check. There was also a flow thread check around some code that checks if previously created lines will be affected by floats in new ways. If this is the right thing to do for flowthread based fragmentation, it's also the right thing to do for non-flowthread based (e.g. printing) fragmentation, so just remove the check. Also reordered and cleaned up checkPaginationAndFloatsAtEndLine() somewhat. We don't have to do anything at all unless we have floats. Let's figure this out as early as possible and bail if we can. Also locate the last line in the block flow in a simpler way. Call lastRootBox() instead of walking some chain of lines all the way to the end. Committed: https://crrev.com/ebfc536321dddcab1696da3d87edf9115026be42 Cr-Commit-Position: refs/heads/master@{#389720}

Patch Set 1 #

Patch Set 2 : De-awesomeified the patch. We need this when not paginated too, since lineDelta may be non-zero. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -28 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 3 chunks +14 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineLayoutState.h View 4 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
mstensho (USE GERRIT)
4 years, 7 months ago (2016-04-25 20:34:50 UTC) #2
leviw_travelin_and_unemployed
lgtm Awesome simplification!
4 years, 7 months ago (2016-04-25 21:10:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803004/1
4 years, 7 months ago (2016-04-25 21:11:05 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/218374)
4 years, 7 months ago (2016-04-25 22:23:10 UTC) #7
mstensho (USE GERRIT)
Looks like I over-simplified it. fast/block/float/float-at-start-of-clean-lines-that-are-subsequently-dirtied.html pointed out to me that we certainly don't need ...
4 years, 7 months ago (2016-04-26 06:11:00 UTC) #9
eae
On 2016/04/26 06:11:00, mstensho wrote: > Looks like I over-simplified it. > > fast/block/float/float-at-start-of-clean-lines-that-are-subsequently-dirtied.html > ...
4 years, 7 months ago (2016-04-26 06:12:11 UTC) #10
mstensho (USE GERRIT)
On 2016/04/26 06:12:11, eae wrote: > Oh floats, always getting in the way.... As defined ...
4 years, 7 months ago (2016-04-26 06:18:04 UTC) #11
eae
On 2016/04/26 06:18:04, mstensho wrote: > On 2016/04/26 06:12:11, eae wrote: > > Oh floats, ...
4 years, 7 months ago (2016-04-26 06:21:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803004/20001
4 years, 7 months ago (2016-04-26 07:36:17 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-26 07:40:10 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-04-26 07:41:11 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ebfc536321dddcab1696da3d87edf9115026be42
Cr-Commit-Position: refs/heads/master@{#389720}

Powered by Google App Engine
This is Rietveld 408576698