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

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

Issue 2882043002: Update our treatment of repeating headers in tables (Closed)
Patch Set: bug 720620 Created 3 years, 7 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
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 2664e77da858f63f831a27cc2ea8368eca772137..0faa1c6d9b6893c59225f69d99a346e8e4b8ab5b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -5792,13 +5792,13 @@ LayoutUnit LayoutBox::CalculatePaginationStrutToFitContent(
LayoutUnit content_logical_height) const {
DCHECK_EQ(strut_to_next_page, PageRemainingLogicalHeightForOffset(
offset, kAssociateWithLatterPage));
- // If we're a cell in a row that straddles a page then avoid the repeating
- // header group if necessary.
+ // If we're inside a cell in a row that straddles a page then avoid the
+ // repeating header group if necessary.
if (IsTableCell()) {
const LayoutTableCell* cell = ToLayoutTableCell(this);
- if (!cell->Row()->IsFirstRowInSectionAfterHeader())
- strut_to_next_page += cell->Table()->RowOffsetFromRepeatingHeader();
+ strut_to_next_page += cell->Table()->RowOffsetFromRepeatingHeader();
}
+
LayoutUnit next_page_logical_top = offset + strut_to_next_page;
if (PageLogicalHeightForOffset(next_page_logical_top) >=
content_logical_height)

Powered by Google App Engine
This is Rietveld 408576698