Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index 59389a119b2539aaa3178732beb510348422f3d9..559be8a28ad46b477ed5ec9d04c0a039a4888f06 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -1375,8 +1375,10 @@ 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->setLogicalHeight(0); |
child->forceChildLayout(); |
+ child->clearOverrideContainingBlockContentLogicalHeight(); |
tony
2014/06/19 16:37:46
Why do we clear the value? If we need to relayout
harpreet.sk
2014/06/20 14:54:32
I clear the value because consider the case below:
|
} |
} |
} else if (isColumnFlow() && child->style()->logicalWidth().isAuto()) { |