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

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: code review 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('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/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..829be97b402c4b56cad3cda5d6dddcfdaff03802 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->blockOffsetToFirstRepeatableHeader();
if (LayoutTableRow* row = m_layoutTableSection.firstRow())
headerGroupOffset += row->paginationStrut();
LayoutUnit offsetToNextPage =
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698