Index: Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp (revision 107302) |
+++ Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp (working copy) |
@@ -228,6 +228,13 @@ |
LayoutRepainter repainter(*this, checkForRepaintDuringLayout()); |
LayoutStateMaintainer statePusher(view(), this, LayoutSize(x(), y()), hasTransform() || hasReflection() || style()->isFlippedBlocksWritingMode()); |
+ if (inRenderFlowThread()) { |
+ // Regions changing widths can force us to relayout our children. |
+ if (logicalWidthChangedInRegions()) |
+ relayoutChildren = true; |
+ } |
+ computeInitialRegionRangeForBlock(); |
+ |
LayoutSize previousSize = size(); |
computeLogicalWidth(); |
@@ -267,6 +274,8 @@ |
bool needAnotherLayoutPass = layoutPositionedObjects(relayoutChildren || isRoot()); |
+ computeRegionRangeForBlock(); |
+ |
if (!isFloatingOrPositioned() && height() == 0) { |
// We are a block with no border and padding and a computed height |
// of 0. The CSS spec states that zero-height blocks collapse their margins |