| Index: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
|
| index faf398c52e4e3394d82c5db71d7da487920d5311..a8bcedcf0774909d78c3aa2a6ab3317499cd2fb4 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
|
| @@ -99,12 +99,10 @@ private:
|
| TopToBottomWritingMode, RightToLeftWritingMode, LeftToRightWritingMode, BottomToTopWritingMode
|
| };
|
|
|
| - typedef HashMap<const LayoutBox*, LayoutUnit> InflexibleFlexItemSize;
|
| - typedef Vector<LayoutBox*> OrderedFlexItemList;
|
| -
|
| + struct FlexItem;
|
| struct LineContext;
|
| - struct Violation;
|
|
|
| + typedef Vector<FlexItem> OrderedFlexItemList;
|
| // Use an inline capacity of 8, since flexbox containers usually have less than 8 children.
|
| typedef Vector<LayoutRect, 8> ChildFrameRects;
|
|
|
| @@ -174,14 +172,14 @@ private:
|
| // The hypothetical main size of an item is the flex base size clamped according to its min and max main size properties
|
| bool computeNextFlexLine(OrderedFlexItemList& orderedChildren, LayoutUnit& sumFlexBaseSize, double& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink, LayoutUnit& sumHypotheticalMainSize, bool relayoutChildren);
|
|
|
| - bool resolveFlexibleLengths(FlexSign, const OrderedFlexItemList&, LayoutUnit availableFreeSpace, LayoutUnit& remainingFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink, InflexibleFlexItemSize&, Vector<LayoutUnit, 16>& childSizes);
|
| - void freezeViolations(const Vector<Violation>&, LayoutUnit& availableFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink, InflexibleFlexItemSize&);
|
| + bool resolveFlexibleLengths(FlexSign, OrderedFlexItemList&, LayoutUnit availableFreeSpace, LayoutUnit& remainingFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink);
|
| + void freezeViolations(Vector<FlexItem*>&, LayoutUnit& availableFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink);
|
|
|
| void resetAutoMarginsAndLogicalTopInCrossAxis(LayoutBox& child);
|
| void setOverrideMainAxisSizeForChild(LayoutBox& child, LayoutUnit childPreferredSize);
|
| void prepareChildForPositionedLayout(LayoutBox& child);
|
| size_t numberOfInFlowPositionedChildren(const OrderedFlexItemList&) const;
|
| - void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexItemList&, const Vector<LayoutUnit, 16>& childSizes, LayoutUnit availableFreeSpace, bool relayoutChildren, SubtreeLayoutScope&, Vector<LineContext>&);
|
| + void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexItemList&, LayoutUnit availableFreeSpace, bool relayoutChildren, SubtreeLayoutScope&, Vector<LineContext>&);
|
| void layoutColumnReverse(const OrderedFlexItemList&, LayoutUnit crossAxisOffset, LayoutUnit availableFreeSpace);
|
| void alignFlexLines(Vector<LineContext>&);
|
| void alignChildren(const Vector<LineContext>&);
|
|
|