Index: Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp (revision 127625) |
+++ Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp (working copy) |
@@ -885,6 +885,7 @@ |
if (childDoesNotAffectWidthOrFlexing(child)) |
continue; |
+ child->clearOverrideSize(); |
if (relayoutChildren || (child->isReplaced() && (child->style()->width().isPercent() || child->style()->height().isPercent())) |
|| (child->style()->height().isAuto() && child->isBlockFlow())) { |
child->setChildNeedsLayout(true, MarkOnlyThis); |
@@ -925,7 +926,6 @@ |
m_flexingChildren = true; |
child->layoutIfNeeded(); |
m_flexingChildren = false; |
- child->clearOverrideSize(); |
// FIXME: For now don't support RTL. |
if (style()->direction() != LTR) |
@@ -988,6 +988,7 @@ |
if (childDoesNotAffectWidthOrFlexing(child)) |
continue; |
+ child->clearOverrideSize(); |
if ((child->isReplaced() && (child->style()->width().isPercent() || child->style()->height().isPercent())) |
|| (child->style()->height().isAuto() && child->isBlockFlow())) { |
child->setChildNeedsLayout(true); |