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

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

Issue 2587673003: Content of cell should avoid repeating headers when it straddles multiple pages (Closed)
Patch Set: bug 675453 Created 4 years 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 2efec3e030e4ee9387d2a245fd729e6034037389..484177209e2c39eed29e5ec599b729635898cc31 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -2012,14 +2012,9 @@ void LayoutTableSection::adjustRowForPagination(LayoutTableRow& rowObject,
// fragmentainer, above this row. Otherwise, this row will just go at the top
// of the next fragmentainer.
- // If there isn't room for at least one content row on a page with a
- // header group, then we won't repeat the header on each page.
LayoutTableSection* header = table()->header();
- if (!rowObject.rowIndex() && header &&
- table()->sectionAbove(this) == header &&
- header->getPaginationBreakability() != AllowAnyBreaks) {
+ if (rowObject.isFirstRowInSectionAfterHeader())
table()->setRowOffsetFromRepeatingHeader(LayoutUnit());
- }
// Border spacing from the previous row has pushed this row just past the top
// of the page, so we must reposition it to the top of the page and avoid any
// repeating header.
« 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