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 7e781b9589895d5fe22b902de59437fa6c56b2f3..6056ef82e1ea24acedba7f9900ffc9b2b440f6e5 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
@@ -647,8 +647,11 @@ void LayoutTable::layout() { |
bottomSection->logicalBottom() - topSection->logicalTop(); |
} |
- distributeExtraLogicalHeight( |
- floorToInt(computedLogicalHeight - totalSectionLogicalHeight)); |
+ if (!state.isPaginated() || |
+ !crossesPageBoundary(tableBoxLogicalTop, computedLogicalHeight)) { |
+ distributeExtraLogicalHeight( |
+ floorToInt(computedLogicalHeight - totalSectionLogicalHeight)); |
+ } |
bool isPaginated = view()->layoutState()->isPaginated(); |
LayoutUnit logicalOffset = |