| Index: third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
|
| index fbc996b507e046373021b1d64e4c87efff5f9faa..084792c090c72a9e9fe7fd5d333273ae0d28d8ae 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
|
| @@ -275,6 +275,23 @@ void LayoutMultiColumnFlowThread::evacuateAndDestroy()
|
| destroy();
|
| }
|
|
|
| +LayoutUnit LayoutMultiColumnFlowThread::maxColumnLogicalHeight() const
|
| +{
|
| + if (m_columnHeightAvailable) {
|
| + // If height is non-auto, it's already constrained against max-height as well.
|
| + // Just return it.
|
| + return m_columnHeightAvailable;
|
| + }
|
| + const LayoutBlockFlow* multicolBlock = multiColumnBlockFlow();
|
| + Length logicalMaxHeight = multicolBlock->style()->logicalMaxHeight();
|
| + if (!logicalMaxHeight.isMaxSizeNone()) {
|
| + LayoutUnit resolvedLogicalMaxHeight = multicolBlock->computeContentLogicalHeight(MaxSize, logicalMaxHeight, -1);
|
| + if (resolvedLogicalMaxHeight != -1)
|
| + return resolvedLogicalMaxHeight;
|
| + }
|
| + return LayoutUnit::max();
|
| +}
|
| +
|
| LayoutUnit LayoutMultiColumnFlowThread::tallestUnbreakableLogicalHeight(LayoutUnit offsetInFlowThread) const
|
| {
|
| if (LayoutMultiColumnSet* multicolSet = columnSetAtBlockOffset(offsetInFlowThread))
|
|
|