| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 52f8ba5ec029f413402c967e5a32e526e52294ca..ae8063dab189df96f83134c81e958d34dc0083e6 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -2714,8 +2714,8 @@ LayoutUnit RenderBox::computePercentageLogicalHeight(const Length& height) const
|
| skippedAutoHeightContainingBlock = true;
|
| containingBlockChild = cb;
|
| cb = cb->containingBlock();
|
| - cb->addPercentHeightDescendant(const_cast<RenderBox*>(this));
|
| }
|
| + cb->addPercentHeightDescendant(const_cast<RenderBox*>(this));
|
|
|
| RenderStyle* cbstyle = cb->style();
|
|
|
| @@ -2867,10 +2867,10 @@ LayoutUnit RenderBox::computeReplacedLogicalHeightUsing(Length logicalHeight) co
|
| case Calculated:
|
| {
|
| RenderObject* cb = isOutOfFlowPositioned() ? container() : containingBlock();
|
| - while (cb->isAnonymous()) {
|
| + while (cb->isAnonymous())
|
| cb = cb->containingBlock();
|
| + if (cb->isRenderBlock())
|
| toRenderBlock(cb)->addPercentHeightDescendant(const_cast<RenderBox*>(this));
|
| - }
|
|
|
| // FIXME: This calculation is not patched for block-flow yet.
|
| // https://bugs.webkit.org/show_bug.cgi?id=46500
|
|
|