| 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 234a2acccb25d6770620acca4ad06afb9ae118e1..e07bd4f4213f3659efd265d69e60812713044b32 100644
|
| --- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| @@ -60,21 +60,23 @@ void TableSectionPainter::paintRepeatingHeaderGroup(
|
| headerGroupOffset += row->paginationStrut();
|
| LayoutUnit offsetToNextPage =
|
| pageHeight - intMod(headerGroupOffset, pageHeight);
|
| - paginationOffset.move(0, offsetToNextPage.toInt());
|
| + paginationOffset.move(LayoutUnit(), 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.toInt() *
|
| - ((paintInfo.cullRect().m_rect.y() - paginationOffset.y()) /
|
| - pageHeight)
|
| - .toInt());
|
| + if (paintInfo.cullRect().m_rect.y() > paginationOffset.y()) {
|
| + paginationOffset.move(LayoutUnit(), pageHeight *
|
| + ((paintInfo.cullRect().m_rect.y() -
|
| + paginationOffset.y()) /
|
| + pageHeight)
|
| + .toInt());
|
| + }
|
| LayoutUnit bottomBound =
|
| std::min(LayoutUnit(paintInfo.cullRect().m_rect.maxY()),
|
| paintOffset.y() + table->logicalHeight());
|
| while (paginationOffset.y() < bottomBound) {
|
| LayoutPoint nestedOffset =
|
| paginationOffset +
|
| - LayoutPoint(0, m_layoutTableSection.offsetForRepeatingHeader().toInt());
|
| + LayoutPoint(LayoutUnit(),
|
| + m_layoutTableSection.offsetForRepeatingHeader());
|
| if (itemToPaint == PaintCollapsedBorders)
|
| paintCollapsedSectionBorders(paintInfo, nestedOffset, currentBorderValue);
|
| else
|
|
|