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

Issue 209863003: [New Multicolumn] balancer confused by content with top margins. (Closed)

Created:
6 years, 9 months ago by mstensho (USE GERRIT)
Modified:
6 years, 9 months ago
Reviewers:
abucur, ojan
CC:
blink-reviews, mstensho+blink_opera.com, chromiumbugtracker_adobe.com, zoltan1, dsinclair, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[New Multicolumn] balancer confused by content with top margins. We need to set zero page logical height in LayoutState when column height is unknown (when the columns haven't yet been balanced). There's code that assumes that non-zero page height means that page height is known. Lying about this makes the pagination code believe that every top margin is adjacent to a column break, which makes it eat and ignore all top margins. This should be cleaned up, but it's easier to wait until the old multicol code has been removed. BUG=353587 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170335

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review. Add test that would fail without these changes. #

Total comments: 1

Patch Set 3 : Rebase master #

Patch Set 4 : Address review issues raised together with lgtm #

Patch Set 5 : Fix test failures in debug mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -5 lines) Patch
A LayoutTests/fast/multicol/break-in-scrollable.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/break-in-scrollable-expected.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/leading-and-trailing-margin.html View 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/leading-and-trailing-margin-expected.html View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/leading-margin.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/leading-margin-expected.html View 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/rendering/LayoutState.cpp View 1 3 chunks +6 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderFlowThread.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnFlowThread.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnFlowThread.cpp View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mstensho (USE GERRIT)
6 years, 9 months ago (2014-03-24 10:33:11 UTC) #1
abucur
https://codereview.chromium.org/209863003/diff/1/Source/core/rendering/LayoutState.cpp File Source/core/rendering/LayoutState.cpp (right): https://codereview.chromium.org/209863003/diff/1/Source/core/rendering/LayoutState.cpp#newcode122 Source/core/rendering/LayoutState.cpp:122: m_isPaginated = m_pageLogicalHeight || m_columnInfo || renderer.flowThreadContainingBlock(); I think ...
6 years, 9 months ago (2014-03-25 10:02:35 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/209863003/diff/1/Source/core/rendering/LayoutState.cpp File Source/core/rendering/LayoutState.cpp (right): https://codereview.chromium.org/209863003/diff/1/Source/core/rendering/LayoutState.cpp#newcode122 Source/core/rendering/LayoutState.cpp:122: m_isPaginated = m_pageLogicalHeight || m_columnInfo || renderer.flowThreadContainingBlock(); On 2014/03/25 ...
6 years, 9 months ago (2014-03-26 09:56:24 UTC) #3
ojan
lgtm https://codereview.chromium.org/209863003/diff/30001/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/209863003/diff/30001/Source/core/rendering/RenderBlockFlow.cpp#newcode233 Source/core/rendering/RenderBlockFlow.cpp:233: // This is a hack to always make ...
6 years, 9 months ago (2014-03-27 23:31:31 UTC) #4
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 9 months ago (2014-03-28 09:15:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/209863003/90001
6 years, 9 months ago (2014-03-28 09:15:13 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 10:24:29 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-28 10:24:30 UTC) #8
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 9 months ago (2014-03-28 10:36:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/209863003/90001
6 years, 9 months ago (2014-03-28 10:36:52 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 11:40:49 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-28 11:40:49 UTC) #12
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 9 months ago (2014-03-28 11:55:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/209863003/90001
6 years, 9 months ago (2014-03-28 11:55:58 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 13:09:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-28 13:09:46 UTC) #16
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 9 months ago (2014-03-28 14:21:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/209863003/100001
6 years, 9 months ago (2014-03-28 14:21:38 UTC) #18
mstensho (USE GERRIT)
This patch was originally written on top of my column-span:all branch, where column sets are ...
6 years, 9 months ago (2014-03-28 14:34:27 UTC) #19
commit-bot: I haz the power
Change committed as 170335
6 years, 9 months ago (2014-03-28 15:27:21 UTC) #20
ojan
6 years, 9 months ago (2014-03-28 19:00:21 UTC) #21
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698