Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index f1809eda34c3899fbb409c5579a24cc202894627..494a7125230755c693df355743baf377e597eda6 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -5501,6 +5501,14 @@ LayoutUnit LayoutBox::pageRemainingLogicalHeightForOffset( |
pageBoundaryRule); |
} |
+bool LayoutBox::crossesPageBoundary(LayoutUnit offset, |
+ LayoutUnit logicalHeight) const { |
+ if (!view()->layoutState()->pageLogicalHeight()) |
+ return false; |
+ return pageRemainingLogicalHeightForOffset(offset, AssociateWithLatterPage) < |
+ logicalHeight; |
+} |
+ |
LayoutUnit LayoutBox::calculatePaginationStrutToFitContent( |
LayoutUnit offset, |
LayoutUnit strutToNextPage, |