| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 6dab61653e325531de3df6e28b81637c559736d9..13439cb9d896e1469656cd857ce26a08bb6e7cd7 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -3217,7 +3217,8 @@ LayoutUnit RenderBox::containingBlockLogicalHeightForPositioned(const RenderBoxM
|
| }
|
|
|
| if (containingBlock->isBox()) {
|
| - const RenderBlock* cb = toRenderBlock(containingBlock);
|
| + const RenderBlock* cb = containingBlock->isRenderBlock() ?
|
| + toRenderBlock(containingBlock) : containingBlock->containingBlock();
|
| LayoutUnit result = cb->clientLogicalHeight();
|
| RenderFlowThread* flowThread = flowThreadContainingBlock();
|
| if (flowThread && containingBlock->isRenderFlowThread() && flowThread->isHorizontalWritingMode() == containingBlock->isHorizontalWritingMode())
|
|
|