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

Issue 1381993002: LayoutBlockFlow: rename paginationStrut to paginationStrutPropagatedFromChild. (Closed)

Created:
5 years, 2 months ago by mstensho (USE GERRIT)
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, 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

LayoutBlockFlow: rename paginationStrut to paginationStrutPropagatedFromChild. While lines (RootInlineBox) store and keep the pagination struts that get applied in front of them, blocks don't. So using the same term (simply paginationStrut) in blocks and lines wasn't really appropriate [*]. This paginationStrutPropagatedFromChild thing is really something that's only needed during layout (see if children want to move a block to the next page column and re-lay out if necessary). Ideally it shouldn't be stored in the objects at all, but finding a way to avoid it proved hard. Stowing it in LayoutState was one idea, but it turned out to be too complicated. [*] The plan is to also store proper pagination struts on blocks (because column balancing will benefit from it). This is a preparatory patch for that. Did some light clean-up on my way, most notably: don't add in the old and possibly stale pagination strut when estimating a logical top position in a subsequent layout pass. The strut had typically been set to 0 at this point anyway, but if it hasn't this code could possibly cause some mischief. In other words, the code was either useless or harmful. R=leviw@chromium.org, jchaffraix@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/49591127bd411ffd9fc3c53009ac2c25da2e064f

Patch Set 1 #

Patch Set 2 : rebase master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -18 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 3 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 7 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
mstensho (USE GERRIT)
5 years, 2 months ago (2015-10-01 15:35:49 UTC) #1
leviw_travelin_and_unemployed
LGTM
5 years, 2 months ago (2015-10-06 10:49:04 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1381993002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1381993002/1
5 years, 2 months ago (2015-10-06 10:49:26 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/106620) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-06 10:50:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1381993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1381993002/20001
5 years, 2 months ago (2015-10-06 10:58:25 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/107048)
5 years, 2 months ago (2015-10-06 11:07:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1381993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1381993002/20001
5 years, 2 months ago (2015-10-06 11:21:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/107058)
5 years, 2 months ago (2015-10-06 11:29:36 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/49591127bd411ffd9fc3c53009ac2c25da2e064f Cr-Commit-Position: refs/heads/master@{#352582}
5 years, 2 months ago (2015-10-06 11:38:36 UTC) #16
mstensho (USE GERRIT)
5 years, 2 months ago (2015-10-06 11:38:56 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
49591127bd411ffd9fc3c53009ac2c25da2e064f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698