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

Issue 1360753002: Only block container children support pagination struts. (Closed)

Created:
5 years, 3 months ago by mstensho (USE GERRIT)
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Only block container children support pagination struts. Removed partial support for pagination struts on table captions, since it didn't work too well (caused inconsistent layout and also overlap with the table section that followed). Instead, set a strut on the content inside the caption (first line, for instance), just like we already do for table cells. We had a check to avoid setting pagination struts on table cells, but there was no similar check for table captions. Replaced the check with examining the containing block. We may only set a pagination strut on a block if its containing block is a block container (LayoutBlockFlow). This automatically fixes similar issues with flexboxes and possible other layout modes too. BUG=329421 R=jchaffraix@chromium.org,leviw@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=202648

Patch Set 1 #

Total comments: 6

Patch Set 2 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -7 lines) Patch
A LayoutTests/fast/multicol/flexbox-starts-at-column-boundary.html View 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/flexbox-starts-at-column-boundary-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/table-caption-and-cells.html View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/table-caption-and-cells-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/table-caption-and-cells-fixed-width.html View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/table-caption-and-cells-fixed-width-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutBlockFlow.cpp View 1 1 chunk +10 lines, -3 lines 0 comments Download
M Source/core/layout/LayoutTable.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
mstensho (USE GERRIT)
5 years, 3 months ago (2015-09-22 10:59:23 UTC) #1
leviw_travelin_and_unemployed
Some comment nits. https://codereview.chromium.org/1360753002/diff/1/Source/core/layout/LayoutBlockFlow.cpp File Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1360753002/diff/1/Source/core/layout/LayoutBlockFlow.cpp#newcode784 Source/core/layout/LayoutBlockFlow.cpp:784: // If we want to break ...
5 years, 3 months ago (2015-09-22 17:20:31 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/1360753002/diff/1/Source/core/layout/LayoutBlockFlow.cpp File Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1360753002/diff/1/Source/core/layout/LayoutBlockFlow.cpp#newcode784 Source/core/layout/LayoutBlockFlow.cpp:784: // If we want to break before the block, ...
5 years, 3 months ago (2015-09-22 18:11:50 UTC) #3
leviw_travelin_and_unemployed
lgtm Poi-fect!
5 years, 3 months ago (2015-09-22 19:26:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360753002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360753002/20001
5 years, 3 months ago (2015-09-22 19:27:18 UTC) #6
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 21:26:23 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=202648

Powered by Google App Engine
This is Rietveld 408576698