| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool hasAutoMarginsInCrossAxis(RenderBox* child) const; | 128 bool hasAutoMarginsInCrossAxis(RenderBox* child) const; |
| 129 bool updateAutoMarginsInCrossAxis(RenderBox* child, LayoutUnit availableAlig
nmentSpace); | 129 bool updateAutoMarginsInCrossAxis(RenderBox* child, LayoutUnit availableAlig
nmentSpace); |
| 130 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); | 130 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); |
| 131 LayoutUnit clientLogicalBottomAfterRepositioning(); | 131 LayoutUnit clientLogicalBottomAfterRepositioning(); |
| 132 void appendChildFrameRects(ChildFrameRects&); | 132 void appendChildFrameRects(ChildFrameRects&); |
| 133 void repaintChildrenDuringLayoutIfMoved(const ChildFrameRects&); | 133 void repaintChildrenDuringLayoutIfMoved(const ChildFrameRects&); |
| 134 | 134 |
| 135 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, R
enderBox*); | 135 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, R
enderBox*); |
| 136 LayoutUnit marginBoxAscentForChild(RenderBox*); | 136 LayoutUnit marginBoxAscentForChild(RenderBox*); |
| 137 | 137 |
| 138 LayoutUnit computeChildMarginValue(Length margin, RenderView*); | 138 LayoutUnit computeChildMarginValue(Length margin); |
| 139 void prepareOrderIteratorAndMargins(); | 139 void prepareOrderIteratorAndMargins(); |
| 140 LayoutUnit adjustChildSizeForMinAndMax(RenderBox*, LayoutUnit childSize); | 140 LayoutUnit adjustChildSizeForMinAndMax(RenderBox*, LayoutUnit childSize); |
| 141 // The hypothetical main size of an item is the flex base size clamped accor
ding to its min and max main size properties | 141 // The hypothetical main size of an item is the flex base size clamped accor
ding to its min and max main size properties |
| 142 bool computeNextFlexLine(OrderedFlexItemList& orderedChildren, LayoutUnit& s
umFlexBaseSize, double& totalFlexGrow, double& totalWeightedFlexShrink, LayoutUn
it& sumHypotheticalMainSize, bool& hasInfiniteLineLength); | 142 bool computeNextFlexLine(OrderedFlexItemList& orderedChildren, LayoutUnit& s
umFlexBaseSize, double& totalFlexGrow, double& totalWeightedFlexShrink, LayoutUn
it& sumHypotheticalMainSize, bool& hasInfiniteLineLength); |
| 143 | 143 |
| 144 bool resolveFlexibleLengths(FlexSign, const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace, double& totalFlexGrow, double& totalWeightedFlexShrink, In
flexibleFlexItemSize&, Vector<LayoutUnit>& childSizes, bool hasInfiniteLineLengt
h); | 144 bool resolveFlexibleLengths(FlexSign, const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace, double& totalFlexGrow, double& totalWeightedFlexShrink, In
flexibleFlexItemSize&, Vector<LayoutUnit>& childSizes, bool hasInfiniteLineLengt
h); |
| 145 void freezeViolations(const Vector<Violation>&, LayoutUnit& availableFreeSpa
ce, double& totalFlexGrow, double& totalWeightedFlexShrink, InflexibleFlexItemSi
ze&, bool hasInfiniteLineLength); | 145 void freezeViolations(const Vector<Violation>&, LayoutUnit& availableFreeSpa
ce, double& totalFlexGrow, double& totalWeightedFlexShrink, InflexibleFlexItemSi
ze&, bool hasInfiniteLineLength); |
| 146 | 146 |
| 147 void resetAutoMarginsAndLogicalTopInCrossAxis(RenderBox*); | 147 void resetAutoMarginsAndLogicalTopInCrossAxis(RenderBox*); |
| 148 bool needToStretchChild(RenderBox*); | 148 bool needToStretchChild(RenderBox*); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 159 | 159 |
| 160 mutable OrderIterator m_orderIterator; | 160 mutable OrderIterator m_orderIterator; |
| 161 int m_numberOfInFlowChildrenOnFirstLine; | 161 int m_numberOfInFlowChildrenOnFirstLine; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); | 164 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| 167 | 167 |
| 168 #endif // RenderFlexibleBox_h | 168 #endif // RenderFlexibleBox_h |
| OLD | NEW |