| Index: Source/core/layout/LayoutBox.cpp
|
| diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
|
| index 1438e363790a3f27f96e6331b4142f88d6e80248..76a796bd8a37f2c73ead8abd630cdbc1515fccd6 100644
|
| --- a/Source/core/layout/LayoutBox.cpp
|
| +++ b/Source/core/layout/LayoutBox.cpp
|
| @@ -2487,7 +2487,7 @@ LayoutUnit LayoutBox::computePercentageLogicalHeight(const Length& height) const
|
| LayoutBlock* cb = containingBlock();
|
| const LayoutBox* containingBlockChild = this;
|
| LayoutUnit rootMarginBorderPaddingHeight = 0;
|
| - while (!cb->isLayoutView() && skipContainingBlockForPercentHeightCalculation(cb)) {
|
| + while (!cb->isLayoutView() && height.type() == Percent && skipContainingBlockForPercentHeightCalculation(cb)) {
|
| if (cb->isBody() || cb->isDocumentElement())
|
| rootMarginBorderPaddingHeight += cb->marginBefore() + cb->marginAfter() + cb->borderAndPaddingLogicalHeight();
|
| skippedAutoHeightContainingBlock = true;
|
|
|