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 80edebfe16493241c93bf6845e3b00e2ecac53b5..6a5ecd5fa8a6457660d2d00fd965bb33f43651ea 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp |
@@ -432,6 +432,8 @@ void LayoutTable::layoutCaption(LayoutTableCaption& caption, |
collapsedMarginBeforeForChild(caption) + logicalHeight(); |
caption.setLogicalLocation( |
LayoutPoint(caption.marginStart(), captionLogicalTop)); |
+ if (view()->layoutState()->isPaginated()) |
+ updateFragmentationInfoForChild(caption); |
if (!selfNeedsLayout()) |
caption.setMayNeedPaintInvalidation(); |
@@ -452,6 +454,8 @@ void LayoutTable::layoutSection(LayoutTableSection& section, |
section.layoutIfNeeded(); |
int sectionLogicalHeight = section.calcRowLogicalHeight(); |
section.setLogicalHeight(LayoutUnit(sectionLogicalHeight)); |
+ if (view()->layoutState()->isPaginated()) |
+ updateFragmentationInfoForChild(section); |
setLogicalHeight(logicalHeight() + sectionLogicalHeight); |
} |