Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index eb9ea46053d7b423a02723cbb84179e77b680934..410433066de2f95f387e817f20347bc02a2db608 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -690,7 +690,14 @@ public: |
virtual bool isIntrinsicallyScrollable(ScrollbarOrientation orientation) const { return false; } |
bool hasUnsplittableScrollingOverflow() const; |
- bool isUnsplittableForPagination() const; |
+ |
+ // Page / column breakability inside block-level objects. |
+ enum PaginationBreakability { |
+ AllowAnyBreaks, // No restrictions on breaking. May examine children to find possible break points. |
+ ForbidBreaks, // Forbid breaks inside this object. Content cannot be split nicely into smaller pieces. |
+ AvoidBreaks // Preferably avoid breaks. If not possible, examine children to find possible break points. |
+ }; |
+ PaginationBreakability paginationBreakability() const; |
LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = nullptr) override; |