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

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

Issue 2389913002: Use paginationStrut() instead of paginationStrutForRow() (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
« 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 d348056c056330a6e36ebb69365361044a425d49..952a6e6358275811eb0b7d1a5a88431303021741 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
@@ -56,8 +56,7 @@ void TableSectionPainter::paintRepeatingHeaderGroup(
// The header may have a pagination strut before it so we need to account for that when establishing its position.
LayoutUnit headerGroupOffset = table->pageLogicalOffset();
if (LayoutTableRow* row = m_layoutTableSection.firstRow())
- headerGroupOffset += m_layoutTableSection.paginationStrutForRow(
- row, table->pageLogicalOffset());
+ headerGroupOffset += row->paginationStrut();
LayoutUnit offsetToNextPage =
pageHeight - intMod(headerGroupOffset, pageHeight);
paginationOffset.move(0, offsetToNextPage.toInt());
« 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