Index: third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp |
index f0ffeb098c9605dddbf1eadb8632cbd5b48419a1..627d9f5b9496f5e557bedade1d377b81203e7300 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp |
@@ -163,6 +163,14 @@ void LayoutFlowThread::generateColumnSetIntervalTree() |
m_multiColumnSetIntervalTree.add(MultiColumnSetIntervalTree::createInterval(columnSet->logicalTopInFlowThread(), columnSet->logicalBottomInFlowThread(), columnSet)); |
} |
+LayoutUnit LayoutFlowThread::nextLogicalTopForUnbreakableContent(LayoutUnit flowThreadOffset, LayoutUnit contentLogicalHeight) const |
+{ |
+ LayoutMultiColumnSet* columnSet = columnSetAtBlockOffset(flowThreadOffset); |
+ if (!columnSet) |
+ return flowThreadOffset; |
+ return columnSet->nextLogicalTopForUnbreakableContent(flowThreadOffset, contentLogicalHeight); |
+} |
+ |
void LayoutFlowThread::collectLayerFragments(PaintLayerFragments& layerFragments, const LayoutRect& layerBoundingBox, const LayoutRect& dirtyRectInFlowThread) |
{ |
ASSERT(!m_columnSetsInvalidated); |