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

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

Issue 2766643003: When repeating headers don't use the header offset on the header itself (Closed)
Patch Set: Created 3 years, 9 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/LayoutTests/printing/avoid-setting-header-offset-on-header-expected.html ('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 c27228946e7a0a51a5fc71821ca86fa1e9601660..8f37f73c08a1bbb83f24ab9ea61b165c4207bd38 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -2019,7 +2019,7 @@ void LayoutTableSection::adjustRowForPagination(LayoutTableRow& rowObject,
// If we have a header group we will paint it at the top of each page,
// move the rows down to accomodate it.
- if (header)
+ if (header && header != this)
paginationStrut += table()->rowOffsetFromRepeatingHeader().toInt();
rowObject.setPaginationStrut(LayoutUnit(paginationStrut));
« no previous file with comments | « third_party/WebKit/LayoutTests/printing/avoid-setting-header-offset-on-header-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698