Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index 7cab4eda8558c0e972e2a7fed1a86c3219f8fbe8..c638bcf790cd567bd451af359800ea3a30bcad7b 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -1372,6 +1372,7 @@ void RenderFlexibleBox::applyStretchAlignmentToChild(RenderBox* child, LayoutUni |
// FIXME: Can avoid laying out here in some cases. See https://webkit.org/b/87905. |
if (desiredLogicalHeight != child->logicalHeight()) { |
child->setOverrideLogicalContentHeight(desiredLogicalHeight - child->borderAndPaddingLogicalHeight()); |
+ child->setOverrideContainingBlockContentLogicalHeight(desiredLogicalHeight - child->borderAndPaddingLogicalHeight()); |
child->setLogicalHeight(0); |
child->forceChildLayout(); |
} |