| Index: Source/core/rendering/RenderFlexibleBox.cpp
|
| diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp
|
| index a3954eb690fdaa08051c0c5cd16d8befa74c3c88..0e6209ecaea7adf1378e5e06f21425d96105623b 100644
|
| --- a/Source/core/rendering/RenderFlexibleBox.cpp
|
| +++ b/Source/core/rendering/RenderFlexibleBox.cpp
|
| @@ -243,10 +243,7 @@ void RenderFlexibleBox::layoutBlock(bool relayoutChildren)
|
|
|
| LayoutStateMaintainer statePusher(view(), this, locationOffset(), hasTransform() || hasReflection() || style()->isFlippedBlocksWritingMode());
|
|
|
| - // Regions changing widths can force us to relayout our children.
|
| RenderFlowThread* flowThread = flowThreadContainingBlock();
|
| - if (logicalWidthChangedInRegions(flowThread))
|
| - relayoutChildren = true;
|
| if (updateRegionsAndShapesLogicalSize(flowThread))
|
| relayoutChildren = true;
|
|
|
| @@ -447,9 +444,7 @@ LayoutUnit RenderFlexibleBox::computeMainAxisExtentForChild(RenderBox* child, Si
|
| child->layoutIfNeeded();
|
| return child->computeContentLogicalHeight(size, child->logicalHeight() - child->borderAndPaddingLogicalHeight());
|
| }
|
| - // FIXME: Figure out how this should work for regions and pass in the appropriate values.
|
| - RenderRegion* region = 0;
|
| - return child->computeLogicalWidthInRegionUsing(sizeType, size, contentLogicalWidth(), this, region) - child->borderAndPaddingLogicalWidth();
|
| + return child->computeLogicalWidthUsing(sizeType, size, contentLogicalWidth(), this) - child->borderAndPaddingLogicalWidth();
|
| }
|
|
|
| WritingMode RenderFlexibleBox::transformedWritingMode() const
|
| @@ -1019,7 +1014,7 @@ void RenderFlexibleBox::prepareChildForPositionedLayout(RenderBox* child, Layout
|
| LayoutUnit inlinePosition = isColumnFlow() ? crossAxisOffset : mainAxisOffset;
|
| if (layoutMode == FlipForRowReverse && style()->flexDirection() == FlowRowReverse)
|
| inlinePosition = mainAxisExtent() - mainAxisOffset;
|
| - childLayer->setStaticInlinePosition(inlinePosition); // FIXME: Not right for regions.
|
| + childLayer->setStaticInlinePosition(inlinePosition);
|
|
|
| LayoutUnit staticBlockPosition = isColumnFlow() ? mainAxisOffset : crossAxisOffset;
|
| if (childLayer->staticBlockPosition() != staticBlockPosition) {
|
| @@ -1359,7 +1354,7 @@ void RenderFlexibleBox::applyStretchAlignmentToChild(RenderBox* child, LayoutUni
|
| // FIXME: If the child doesn't have orthogonal flow, then it already has an override width set, so use it.
|
| if (hasOrthogonalFlow(child)) {
|
| LayoutUnit childWidth = std::max<LayoutUnit>(0, lineCrossAxisExtent - crossAxisMarginExtentForChild(child));
|
| - childWidth = child->constrainLogicalWidthInRegionByMinMax(childWidth, childWidth, this);
|
| + childWidth = child->constrainLogicalWidthByMinMax(childWidth, childWidth, this);
|
|
|
| if (childWidth != child->logicalWidth()) {
|
| child->setOverrideLogicalContentWidth(childWidth - child->borderAndPaddingLogicalWidth());
|
|
|