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

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..a174e715635a4b59f6ae79ab9f2c5c4da7e15f1f 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);
+ setRowOffsetFromRepeatingHeader(offsetForTableHeaders);
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698