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

Issue 1602773005: Respect break-inside:avoid on table rows (Closed)

Created:
4 years, 11 months ago by rhogan
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

Respect break-inside:avoid on table rows When break-inside:avoid is set on a table row then push the row down to the pagination boundary if it would otherwise straddle it. BUG=99124 Committed: https://crrev.com/6827228e3e093e665e2460503c258730f570e477 Cr-Commit-Position: refs/heads/master@{#392404}

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Total comments: 9

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Patch Set 7 : Updated #

Total comments: 2

Patch Set 8 : Updated #

Total comments: 2

Patch Set 9 : Updated #

Patch Set 10 : Updated #

Total comments: 13

Patch Set 11 : Updated #

Total comments: 14

Patch Set 12 : Updated #

Total comments: 13

Patch Set 13 : Updated #

Patch Set 14 : Updated #

Total comments: 5

Patch Set 15 : Updated #

Patch Set 16 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -68 lines) Patch
A third_party/WebKit/LayoutTests/fragmentation/cell-doesnt-fit-in-column-after-previous-content.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cell-doesnt-fit-in-column-after-previous-content-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cell-doesnt-fit-on-page-has-text.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cell-doesnt-fit-on-page-has-text-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cell-taller-than-col-straddles-columns.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cell-taller-than-col-straddles-columns-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cells-dont-fit-on-page-paginated.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/cells-dont-fit-on-page-paginated-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/multi-line-cells.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/multi-line-cells-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/multi-line-cells-paginated.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/multi-line-cells-paginated-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-cell-too-large-for-page.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-cell-too-large-for-page-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells-paginated.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells-paginated-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells-paginated-with-text.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/single-line-cells-paginated-with-text-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +60 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +51 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +35 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (5 generated)
rhogan
4 years, 10 months ago (2016-02-02 21:22:25 UTC) #2
mstensho (USE GERRIT)
What's the deal with "inline content" in particular (your description)? https://codereview.chromium.org/1602773005/diff/60001/third_party/WebKit/LayoutTests/fast/multicol/cell-shrinkback-expected.html File third_party/WebKit/LayoutTests/fast/multicol/cell-shrinkback-expected.html (right): https://codereview.chromium.org/1602773005/diff/60001/third_party/WebKit/LayoutTests/fast/multicol/cell-shrinkback-expected.html#newcode3 ...
4 years, 10 months ago (2016-02-03 14:38:48 UTC) #3
rhogan
On 2016/02/03 at 14:38:48, mstensho wrote: > What's the deal with "inline content" in particular ...
4 years, 10 months ago (2016-02-24 18:58:03 UTC) #5
rhogan
https://codereview.chromium.org/1602773005/diff/60001/third_party/WebKit/Source/core/layout/LayoutTableRow.h File third_party/WebKit/Source/core/layout/LayoutTableRow.h (right): https://codereview.chromium.org/1602773005/diff/60001/third_party/WebKit/Source/core/layout/LayoutTableRow.h#newcode132 third_party/WebKit/Source/core/layout/LayoutTableRow.h:132: void setPaginationStrutPropagatedFromCell(LayoutUnit strut) { m_paginationStrutPropagatedFromCell = strut; }; On ...
4 years, 10 months ago (2016-02-24 18:58:17 UTC) #6
mstensho (USE GERRIT)
It seems hard to break nicely inside table cells at all now, and the first ...
4 years, 10 months ago (2016-02-26 13:29:59 UTC) #7
rhogan
On 2016/02/26 at 13:29:59, mstensho wrote: > It seems hard to break nicely inside table ...
4 years, 9 months ago (2016-02-27 11:20:08 UTC) #8
rhogan
On 2016/02/27 at 11:20:08, rhogan wrote: > On 2016/02/26 at 13:29:59, mstensho wrote: > > ...
4 years, 9 months ago (2016-02-27 11:23:41 UTC) #9
mstensho (USE GERRIT)
https://codereview.chromium.org/1602773005/diff/140001/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1602773005/diff/140001/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode728 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:728: if (block.isTableCell() && toLayoutTableCell(block).table()->vBorderSpacing() + block.logicalHeight() + remainingLogicalHeight < ...
4 years, 9 months ago (2016-02-29 09:46:47 UTC) #10
rhogan
On 2016/02/29 at 09:46:47, mstensho wrote: > I'm sorry, but this just looks like a ...
4 years, 9 months ago (2016-02-29 19:28:07 UTC) #11
mstensho (USE GERRIT)
On 2016/02/29 19:28:07, rhogan wrote: > On 2016/02/29 at 09:46:47, mstensho wrote: > > I'm ...
4 years, 9 months ago (2016-02-29 21:01:31 UTC) #12
rhogan
On 2016/02/29 at 21:01:31, mstensho wrote: > On 2016/02/29 19:28:07, rhogan wrote: > > On ...
4 years, 9 months ago (2016-03-03 21:33:40 UTC) #13
mstensho (USE GERRIT)
On 2016/03/03 21:33:40, rhogan wrote: > On 2016/02/29 at 21:01:31, mstensho wrote: > > It ...
4 years, 9 months ago (2016-03-03 21:42:33 UTC) #14
rhogan
On 2016/03/03 at 21:42:33, mstensho wrote: > > First of all, I think it needs ...
4 years, 9 months ago (2016-03-14 21:04:57 UTC) #15
mstensho (USE GERRIT)
A bunch of comments, but I like the direction this CL is taking! :) https://codereview.chromium.org/1602773005/diff/180001/third_party/WebKit/LayoutTests/fast/multicol/cell-taller-than-col-straddles-columns.html ...
4 years, 9 months ago (2016-03-17 14:04:04 UTC) #16
rhogan
On 2016/03/17 at 14:04:04, mstensho wrote: > A bunch of comments, but I like the ...
4 years, 9 months ago (2016-03-23 21:32:26 UTC) #17
mstensho (USE GERRIT)
I don't see the need for any printing/ tests, since your changes are purely about ...
4 years, 8 months ago (2016-03-29 09:57:46 UTC) #18
rhogan
Thanks mstensho - can you take a look at my comments before I do a ...
4 years, 8 months ago (2016-03-29 19:04:37 UTC) #19
rhogan
On 2016/03/29 at 19:04:37, rhogan wrote: > Thanks mstensho - can you take a look ...
4 years, 8 months ago (2016-03-29 19:15:13 UTC) #20
mstensho (USE GERRIT)
I still insist that reftests are better than PNG tests, and that they way are ...
4 years, 8 months ago (2016-03-31 09:55:04 UTC) #21
rhogan
Addressed all your comments I think, and added new reftests. https://codereview.chromium.org/1602773005/diff/200001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/1602773005/diff/200001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1648 ...
4 years, 8 months ago (2016-04-03 14:56:41 UTC) #22
mstensho (USE GERRIT)
Thanks for the new tests! Pretty much full coverage now. :) How about that move ...
4 years, 8 months ago (2016-04-04 21:05:39 UTC) #23
rhogan
On 2016/04/04 at 21:05:39, mstensho wrote: > Thanks for the new tests! Pretty much full ...
4 years, 7 months ago (2016-05-04 18:46:10 UTC) #25
mstensho (USE GERRIT)
https://codereview.chromium.org/1602773005/diff/260001/third_party/WebKit/LayoutTests/fragmentation/second-cell-doesnt-fit-in-column.html File third_party/WebKit/LayoutTests/fragmentation/second-cell-doesnt-fit-in-column.html (right): https://codereview.chromium.org/1602773005/diff/260001/third_party/WebKit/LayoutTests/fragmentation/second-cell-doesnt-fit-in-column.html#newcode4 third_party/WebKit/LayoutTests/fragmentation/second-cell-doesnt-fit-in-column.html:4: border-collapse: collapse; Does this actually make any difference? Border ...
4 years, 7 months ago (2016-05-04 20:23:44 UTC) #26
rhogan
https://codereview.chromium.org/1602773005/diff/260001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/1602773005/diff/260001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode1063 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:1063: rowHeightIncreaseForPagination = std::max<int>(rowHeightIncreaseForPagination, oldLogicalHeight - rHeight); On 2016/05/04 at ...
4 years, 7 months ago (2016-05-04 20:31:45 UTC) #27
mstensho (USE GERRIT)
Can you follow up on my comments regarding the new test as well, please? https://codereview.chromium.org/1602773005/diff/260001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ...
4 years, 7 months ago (2016-05-04 21:02:24 UTC) #28
rhogan
On 2016/05/04 at 21:02:24, mstensho wrote: > > Oh, I said that? Indeed I did. ...
4 years, 7 months ago (2016-05-09 17:38:19 UTC) #29
mstensho (USE GERRIT)
lgtm
4 years, 7 months ago (2016-05-09 18:50:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1602773005/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1602773005/300001
4 years, 7 months ago (2016-05-09 18:51:18 UTC) #32
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 7 months ago (2016-05-09 20:00:36 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 20:02:02 UTC) #35
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/6827228e3e093e665e2460503c258730f570e477
Cr-Commit-Position: refs/heads/master@{#392404}

Powered by Google App Engine
This is Rietveld 408576698