Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1761)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 1426673005: Introduce LayoutBox::paginationBreakability(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698