| 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 4296c815b4c87e1bd7a1ef41f91e6a1614a0f8d3..e1534bc61efca9ee9b6c9a575602ebd4994c4754 100644
|
| --- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
|
| @@ -37,17 +37,12 @@ inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint(unsigned r
|
|
|
| void TableSectionPainter::paintRepeatingHeaderGroup(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const CollapsedBorderValue& currentBorderValue, ItemToPaint itemToPaint)
|
| {
|
| - if (m_layoutTableSection.getPaginationBreakability() == LayoutBox::AllowAnyBreaks)
|
| - return;
|
| - // TODO(rhogan): Should we paint a header repeatedly if it's self-painting?
|
| - if (m_layoutTableSection.hasSelfPaintingLayer())
|
| - return;
|
| - LayoutTable* table = m_layoutTableSection.table();
|
| - LayoutUnit pageHeight = table->pageLogicalHeightForOffset(LayoutUnit());
|
| - if (!pageHeight)
|
| + if (!m_layoutTableSection.hasRepeatingHeaderGroup())
|
| return;
|
|
|
| + 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());
|
| // Now move paginationOffset to the top of the page the cull rect starts on.
|
|
|