| Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| index e394118edb9f5e1d1721112df0aa43ff0bff9fd4..7c16f49b3df9fc2fc5124cc9c081350dc8a8d644 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| @@ -2887,6 +2887,14 @@ bool LayoutBlockFlow::allowsPaginationStrut() const
|
| // TODO(mstensho): But we *should*.
|
| if (isOutOfFlowPositioned())
|
| return false;
|
| + if (isLayoutFlowThread()) {
|
| + // Don't let the strut escape the fragmentation context and get lost.
|
| + // TODO(mstensho): If we're in a nested fragmentation context, we should ideally convert
|
| + // and propagate the strut to the outer fragmentation context, so that the inner one is
|
| + // fully pushed to the next outer fragmentainer, instead of taking up unusable space in the
|
| + // previous one. But currently we have no mechanism in place to handle this.
|
| + return false;
|
| + }
|
| LayoutBlock* containingBlock = this->containingBlock();
|
| return containingBlock && containingBlock->isLayoutBlockFlow();
|
| }
|
|
|