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

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

Issue 2545243002: Don't repeat thead if the first row exceeds the height of the page (Closed)
Patch Set: bug 669690 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
Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 9ef0d6f167d0355111ad05520d1015979e039367..a89c55e2b8afb5e18ef86ba0d4dfa634fe41c0ab 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -635,16 +635,12 @@ void LayoutTable::layout() {
if (sectionLogicalHeight <
section->pageLogicalHeightForOffset(section->logicalTop()) &&
section->getPaginationBreakability() != AllowAnyBreaks) {
- LayoutUnit offsetForTableHeaders =
- state.heightOffsetForTableHeaders();
// Don't include any strut in the header group - we only want the
// height from its content.
- offsetForTableHeaders += sectionLogicalHeight;
+ LayoutUnit offsetForTableHeaders = sectionLogicalHeight;
if (LayoutTableRow* row = section->firstRow())
offsetForTableHeaders -= row->paginationStrut();
- section->setOffsetForRepeatingHeader(
- state.heightOffsetForTableHeaders());
- state.setHeightOffsetForTableHeaders(offsetForTableHeaders);
+ section->setRowOffsetFromRepeatingHeader(offsetForTableHeaders);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698