| Index: third_party/WebKit/Source/core/layout/LayoutBlock.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.h b/third_party/WebKit/Source/core/layout/LayoutBlock.h
|
| index 729dbacfe318dfa13d7b862aadf2eefb19b8590e..d0e54aeba07150cfdeac9ed219b9e472791b3b9e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.h
|
| @@ -436,6 +436,12 @@ public:
|
| LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const;
|
| LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) const;
|
|
|
| + // Calculate the strut to insert in order fit content of size |contentLogicalHeight|.
|
| + // |strutToNextPage| is the strut to add to |offset| to merely get to the top of the next page
|
| + // or column. This is what will be returned if the content can actually fit there. Otherwise,
|
| + // return the distance to the next fragmentainer that can fit this piece of content.
|
| + LayoutUnit calculatePaginationStrutToFitContent(LayoutUnit offset, LayoutUnit strutToNextPage, LayoutUnit contentLogicalHeight) const;
|
| +
|
| protected:
|
| bool isPageLogicalHeightKnown(LayoutUnit logicalOffset) const { return pageLogicalHeightForOffset(logicalOffset); }
|
|
|
|
|