Index: Source/WebCore/rendering/RenderFlexibleBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderFlexibleBox.cpp (revision 107302) |
+++ Source/WebCore/rendering/RenderFlexibleBox.cpp (working copy) |
@@ -166,6 +166,13 @@ |
LayoutRepainter repainter(*this, checkForRepaintDuringLayout()); |
LayoutStateMaintainer statePusher(view(), this, IntSize(x(), y()), hasTransform() || hasReflection() || style()->isFlippedBlocksWritingMode()); |
+ if (inRenderFlowThread()) { |
+ // Regions changing widths can force us to relayout our children. |
+ if (logicalWidthChangedInRegions()) |
+ relayoutChildren = true; |
+ } |
+ computeInitialRegionRangeForBlock(); |
+ |
IntSize previousSize = size(); |
setLogicalHeight(0); |
@@ -193,6 +200,8 @@ |
layoutPositionedObjects(relayoutChildren || isRoot()); |
+ computeRegionRangeForBlock(); |
+ |
// FIXME: css3/flexbox/repaint-rtl-column.html seems to repaint more overflow than it needs to. |
computeOverflow(oldClientAfterEdge); |
statePusher.pop(); |