Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
index 9a0a90f993fd03c929f4d54c7b9a85bba2ee6781..0593eb3415162e18c8021f87d41606d92bc725f4 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
@@ -1039,8 +1039,10 @@ LayoutUnit LayoutBlockFlow::adjustFloatLogicalTopForPagination( |
if (pageLogicalHeightForOffset(logicalTopMarginEdge)) { |
LayoutUnit remainingSpace = pageRemainingLogicalHeightForOffset( |
logicalTopMarginEdge, AssociateWithLatterPage); |
- if (remainingSpace <= marginBefore) |
- strut += remainingSpace; |
+ if (remainingSpace <= marginBefore) { |
+ strut += calculatePaginationStrutToFitContent( |
+ logicalTopMarginEdge, remainingSpace, marginBefore); |
+ } |
} |
} |
} |