| Index: Source/core/rendering/RenderBox.h
|
| diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h
|
| index 38f77dcaa32100a7f6e634ba29c59a13216cdd92..368aa6cc7d8f138fb46c49276e8a6693a253bd8b 100644
|
| --- a/Source/core/rendering/RenderBox.h
|
| +++ b/Source/core/rendering/RenderBox.h
|
| @@ -36,7 +36,6 @@
|
| enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
|
| enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorderPadding };
|
| enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayScrollbarSize };
|
| -enum MarginDirection { BlockDirection, InlineDirection };
|
|
|
| enum ShouldComputePreferred { ComputeActual, ComputePreferred };
|
|
|
| @@ -384,11 +383,12 @@
|
| LayoutUnit m_position;
|
| ComputedMarginValues m_margins;
|
| };
|
| - // Resolve auto margins in the chosen direction of the containing block so that objects can be pushed to the start, middle or end
|
| + // Resolve auto margins in the inline direction of the containing block so that objects can be pushed to the start, middle or end
|
| // of the containing block.
|
| - void computeMarginsForDirection(MarginDirection forDirection, const RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginStartEnd) const;
|
| + void computeInlineDirectionMargins(RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marginEnd) const;
|
|
|
| // Used to resolve margins in the containing block's block-flow direction.
|
| + void computeBlockDirectionMargins(const RenderBlock* containingBlock, LayoutUnit& marginBefore, LayoutUnit& marginAfter) const;
|
| void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock);
|
|
|
| virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const;
|
|
|