| Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| index 507970f86467939802e1342e2d09700aad806025..b3dd7c8af4931593b4bcdf1e0623b93d27e8154e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| @@ -536,12 +536,18 @@ void LayoutTable::layout()
|
|
|
| distributeExtraLogicalHeight(floorToInt(computedLogicalHeight - totalSectionLogicalHeight));
|
|
|
| + bool isPaginated = view()->layoutState()->isPaginated();
|
| LayoutTableSection* topSection = this->topSection();
|
| LayoutUnit logicalOffset = topSection ? topSection->logicalTop() : LayoutUnit();
|
| for (LayoutTableSection* section = topSection; section; section = sectionBelow(section)) {
|
| section->setLogicalTop(logicalOffset);
|
| section->layoutRows();
|
| logicalOffset += section->logicalHeight();
|
| + if (isPaginated && m_head && m_head == section) {
|
| + LayoutUnit offsetForTableHeaders = state.heightOffsetForTableHeaders();
|
| + offsetForTableHeaders += section->logicalHeight();
|
| + state.setHeightOffsetForTableHeaders(offsetForTableHeaders);
|
| + }
|
| }
|
|
|
| if (!topSection && computedLogicalHeight > totalSectionLogicalHeight && !document().inQuirksMode()) {
|
|
|