| 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 e1534bc61efca9ee9b6c9a575602ebd4994c4754..de99b1a78074181c0e748c1dce1a7146830b5ec2 100644
|
| --- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| @@ -43,8 +43,10 @@ void TableSectionPainter::paintRepeatingHeaderGroup(const PaintInfo& paintInfo,
|
| LayoutTable* table = m_layoutTableSection.table();
|
| LayoutPoint paginationOffset = paintOffset;
|
| LayoutUnit pageHeight = table->pageLogicalHeightForOffset(LayoutUnit());
|
| - // Move paginationOffset to the top of the second page.
|
| - paginationOffset.move(0, pageHeight - table->pageLogicalOffset());
|
| +
|
| + // Move paginationOffset to the top of the next page.
|
| + LayoutUnit offsetToNextPage = pageHeight - intMod(table->pageLogicalOffset(), pageHeight);
|
| + paginationOffset.move(0, offsetToNextPage);
|
| // Now move paginationOffset to the top of the page the cull rect starts on.
|
| if (paintInfo.cullRect().m_rect.y() > paginationOffset.y())
|
| paginationOffset.move(0, pageHeight * static_cast<int>((paintInfo.cullRect().m_rect.y() - paginationOffset.y()) / pageHeight));
|
|
|