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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp

Issue 2426553004: Clean up break-inside restriction propagation from table headers. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index f4681d9d0e785dc840cb607ee76a055d8a595ab2..74c16cbc6d91eb072563d18690b3145f9c0df303 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -1253,15 +1253,7 @@ void LayoutTableSection::layoutRows() {
int LayoutTableSection::paginationStrutForRow(LayoutTableRow* row,
LayoutUnit logicalOffset) const {
DCHECK(row);
- // Even if the row allows us to break-inside, we will want to put a strut on
- // the row if we have a header group that wants to appear at the top of each
- // page.
- bool tableHeaderForcesStrut =
- table()->header()
- ? table()->header()->getPaginationBreakability() != AllowAnyBreaks
- : false;
- if (row->getPaginationBreakability() == AllowAnyBreaks &&
- !tableHeaderForcesStrut)
+ if (row->getPaginationBreakability() == AllowAnyBreaks)
return 0;
LayoutUnit pageLogicalHeight = pageLogicalHeightForOffset(logicalOffset);
if (!pageLogicalHeight)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698