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

Unified Diff: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp

Issue 2455733003: Provide a dedicated getter for the offset to a repeatable THEAD. (Closed)
Patch Set: Created 4 years, 2 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/paint/TableSectionPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
index ab17ec7349d1961d6e2450496b67448f85841734..ae1a8e4bbced2c30085aa271c8c57be08e663d6f 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
@@ -55,7 +55,7 @@ void TableSectionPainter::paintRepeatingHeaderGroup(
// Move paginationOffset to the top of the next page.
// The header may have a pagination strut before it so we need to account for
// that when establishing its position.
- LayoutUnit headerGroupOffset = table->pageLogicalOffset();
+ LayoutUnit headerGroupOffset = table->offsetToFirstRepeatableHeader();
if (LayoutTableRow* row = m_layoutTableSection.firstRow())
headerGroupOffset += row->paginationStrut();
LayoutUnit offsetToNextPage =

Powered by Google App Engine
This is Rietveld 408576698