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 9ae716577e0dd6ffa1862617eff1887fbd144cd2..cb63f2ce4c19a644549fe31cf549e17cdc7e5c95 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
@@ -737,7 +737,7 @@ void LayoutTable::layout() { |
computeOverflow(clientLogicalBottom()); |
updateAfterLayout(); |
- if (state.pageLogicalHeight()) { |
+ if (state.isPaginated() && isPageLogicalHeightKnown()) { |
m_blockOffsetToFirstRepeatableHeader = state.pageLogicalOffset( |
*this, topSection ? topSection->logicalTop() : LayoutUnit()); |
} |