| Index: Source/core/rendering/RenderBlock.cpp
|
| diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
|
| index dd7917baa7f55507227787070071fdd15f74242a..da0f87d8db85a8b999434e16475624f1e7ce3740 100644
|
| --- a/Source/core/rendering/RenderBlock.cpp
|
| +++ b/Source/core/rendering/RenderBlock.cpp
|
| @@ -1543,7 +1543,8 @@ void RenderBlock::updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, R
|
| {
|
| // FIXME: Technically percentage height objects only need a relayout if their percentage isn't going to be turned into
|
| // an auto value. Add a method to determine this, so that we can avoid the relayout.
|
| - if (relayoutChildren || (child.hasRelativeLogicalHeight() && !isRenderView()))
|
| + bool hasRelativeLogicalHeight = child.hasRelativeLogicalHeight() || (child.isAnonymous() && this->hasRelativeLogicalHeight());
|
| + if (relayoutChildren || (hasRelativeLogicalHeight && !isRenderView()))
|
| child.setChildNeedsLayout(MarkOnlyThis);
|
|
|
| // If relayoutChildren is set and the child has percentage padding or an embedded content box, we also need to invalidate the childs pref widths.
|
|
|