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

Issue 1420713003: Deduct pagination struts when calculating initial column height. (Closed)

Created:
5 years, 1 month ago by mstensho (USE GERRIT)
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), 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

Deduct pagination struts when calculating initial column height. Even if height is auto, nested multicol sets a column height in the initial layout pass (set to the remaining height in the outer multicol container; this all takes place in resetColumnHeight()), which enables pagination in the first layout pass, and may thus insert pagination struts. We need to exclude those when calculating the initial balanced column height estimate. The reason why we set this height before layout in this case, is that we need to figure out how many fragmentainer groups (rows) we need. In the future, we may also consider setting a height before layout for non-nested auto-height multicol containers, as an optimiation, since that may reduce the number of layout passes in some cases. Cleaned up the code in MultiColumnFragmentainerGroup::resetColumnHeight(). No behavioral changes there, and the TODO is adressed with this CL. R=leviw@chromium.org BUG=447718 Committed: https://crrev.com/2a88bf4073c19256c607f2224b013156b50f7430 Cr-Commit-Position: refs/heads/master@{#357338}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Code review #

Messages

Total messages: 9 (2 generated)
mstensho (USE GERRIT)
5 years, 1 month ago (2015-10-28 19:30:47 UTC) #1
mstensho (USE GERRIT)
Levi: there are are more goodies (albeit somewhat less beefy) waiting, once this one lands. ...
5 years, 1 month ago (2015-10-30 14:13:31 UTC) #2
leviw_travelin_and_unemployed
Sorry, I had some comments I forgot to hit "send" on! Thanks for the ping. ...
5 years, 1 month ago (2015-10-30 20:10:50 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/1420713003/diff/1/third_party/WebKit/Source/core/layout/ColumnBalancer.cpp File third_party/WebKit/Source/core/layout/ColumnBalancer.cpp (right): https://codereview.chromium.org/1420713003/diff/1/third_party/WebKit/Source/core/layout/ColumnBalancer.cpp#newcode142 third_party/WebKit/Source/core/layout/ColumnBalancer.cpp:142: LayoutUnit totalStrut; On 2015/10/30 20:10:50, leviw wrote: > totalStrutSpace ...
5 years, 1 month ago (2015-11-02 09:12:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420713003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420713003/20001
5 years, 1 month ago (2015-11-02 09:13:09 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-02 12:05:35 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 12:06:26 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2a88bf4073c19256c607f2224b013156b50f7430
Cr-Commit-Position: refs/heads/master@{#357338}

Powered by Google App Engine
This is Rietveld 408576698