Index: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h |
index 4f304c267beabe50e8c677e9ac5785bff55d835f..2274ab529ce761095836b4cd7777eb17c0ec3474 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h |
@@ -107,6 +107,11 @@ public: |
LayoutUnit logicalTopInFlowThread() const; |
LayoutUnit logicalBottomInFlowThread() const; |
LayoutUnit logicalHeightInFlowThread() const { return logicalBottomInFlowThread() - logicalTopInFlowThread(); } |
+ |
+ // Return the amount of flow thread contents that the specified fragmentainer group can hold |
+ // without overflowing. |
+ LayoutUnit fragmentainerGroupCapacity(const MultiColumnFragmentainerGroup &group) const { return group.logicalHeight() * usedColumnCount(); } |
+ |
LayoutRect flowThreadPortionRect() const; |
LayoutRect flowThreadPortionOverflowRect() const; |
LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPortionRect, bool isFirstPortion, bool isLastPortion) const; |