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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 bool hasOrthogonalFlow(const LayoutBox& child) const; | 113 bool hasOrthogonalFlow(const LayoutBox& child) const; |
114 bool isColumnFlow() const; | 114 bool isColumnFlow() const; |
115 bool isLeftToRightFlow() const; | 115 bool isLeftToRightFlow() const; |
116 bool isMultiline() const; | 116 bool isMultiline() const; |
117 Length flexBasisForChild(const LayoutBox& child) const; | 117 Length flexBasisForChild(const LayoutBox& child) const; |
118 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const; | 118 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const; |
119 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const; | 119 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const; |
120 LayoutUnit childIntrinsicHeight(const LayoutBox& child) const; | 120 LayoutUnit childIntrinsicHeight(const LayoutBox& child) const; |
121 LayoutUnit childIntrinsicWidth(const LayoutBox& child) const; | 121 LayoutUnit childIntrinsicWidth(const LayoutBox& child) const; |
122 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const; | 122 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const; |
| 123 LayoutUnit mainAxisContentExtentForChild(const LayoutBox& child) const; |
123 LayoutUnit crossAxisExtent() const; | 124 LayoutUnit crossAxisExtent() const; |
124 LayoutUnit mainAxisExtent() const; | 125 LayoutUnit mainAxisExtent() const; |
125 LayoutUnit crossAxisContentExtent() const; | 126 LayoutUnit crossAxisContentExtent() const; |
126 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight); | 127 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight); |
127 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c
onst Length& size); | 128 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c
onst Length& size); |
128 TransformedWritingMode getTransformedWritingMode() const; | 129 TransformedWritingMode getTransformedWritingMode() const; |
129 LayoutUnit flowAwareBorderStart() const; | 130 LayoutUnit flowAwareBorderStart() const; |
130 LayoutUnit flowAwareBorderEnd() const; | 131 LayoutUnit flowAwareBorderEnd() const; |
131 LayoutUnit flowAwareBorderBefore() const; | 132 LayoutUnit flowAwareBorderBefore() const; |
132 LayoutUnit flowAwareBorderAfter() const; | 133 LayoutUnit flowAwareBorderAfter() const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 LayoutUnit adjustChildSizeForMinAndMax(const LayoutBox& child, LayoutUnit ch
ildSize); | 175 LayoutUnit adjustChildSizeForMinAndMax(const LayoutBox& child, LayoutUnit ch
ildSize); |
175 LayoutUnit adjustChildSizeForAspectRatioCrossAxisMinAndMax(const LayoutBox&
child, LayoutUnit childSize); | 176 LayoutUnit adjustChildSizeForAspectRatioCrossAxisMinAndMax(const LayoutBox&
child, LayoutUnit childSize); |
176 // The hypothetical main size of an item is the flex base size clamped accor
ding to its min and max main size properties | 177 // The hypothetical main size of an item is the flex base size clamped accor
ding to its min and max main size properties |
177 bool computeNextFlexLine(OrderedFlexItemList& orderedChildren, LayoutUnit& s
umFlexBaseSize, double& totalFlexGrow, double& totalFlexShrink, double& totalWei
ghtedFlexShrink, LayoutUnit& sumHypotheticalMainSize, bool relayoutChildren); | 178 bool computeNextFlexLine(OrderedFlexItemList& orderedChildren, LayoutUnit& s
umFlexBaseSize, double& totalFlexGrow, double& totalFlexShrink, double& totalWei
ghtedFlexShrink, LayoutUnit& sumHypotheticalMainSize, bool relayoutChildren); |
178 | 179 |
179 void freezeInflexibleItems(FlexSign, OrderedFlexItemList& children, LayoutUn
it& remainingFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double&
totalWeightedFlexShrink); | 180 void freezeInflexibleItems(FlexSign, OrderedFlexItemList& children, LayoutUn
it& remainingFreeSpace, double& totalFlexGrow, double& totalFlexShrink, double&
totalWeightedFlexShrink); |
180 bool resolveFlexibleLengths(FlexSign, OrderedFlexItemList&, LayoutUnit initi
alFreeSpace, LayoutUnit& remainingFreeSpace, double& totalFlexGrow, double& tota
lFlexShrink, double& totalWeightedFlexShrink); | 181 bool resolveFlexibleLengths(FlexSign, OrderedFlexItemList&, LayoutUnit initi
alFreeSpace, LayoutUnit& remainingFreeSpace, double& totalFlexGrow, double& tota
lFlexShrink, double& totalWeightedFlexShrink); |
181 void freezeViolations(Vector<FlexItem*>&, LayoutUnit& availableFreeSpace, do
uble& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink); | 182 void freezeViolations(Vector<FlexItem*>&, LayoutUnit& availableFreeSpace, do
uble& totalFlexGrow, double& totalFlexShrink, double& totalWeightedFlexShrink); |
182 | 183 |
183 void resetAutoMarginsAndLogicalTopInCrossAxis(LayoutBox& child); | 184 void resetAutoMarginsAndLogicalTopInCrossAxis(LayoutBox& child); |
184 void setOverrideMainAxisSizeForChild(LayoutBox& child, LayoutUnit childPrefe
rredSize); | 185 void setOverrideMainAxisContentSizeForChild(LayoutBox& child, LayoutUnit chi
ldPreferredSize); |
185 void prepareChildForPositionedLayout(LayoutBox& child); | 186 void prepareChildForPositionedLayout(LayoutBox& child); |
186 size_t numberOfInFlowPositionedChildren(const OrderedFlexItemList&) const; | 187 size_t numberOfInFlowPositionedChildren(const OrderedFlexItemList&) const; |
187 void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexIt
emList&, LayoutUnit availableFreeSpace, bool relayoutChildren, SubtreeLayoutScop
e&, Vector<LineContext>&); | 188 void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexIt
emList&, LayoutUnit availableFreeSpace, bool relayoutChildren, SubtreeLayoutScop
e&, Vector<LineContext>&); |
188 void layoutColumnReverse(const OrderedFlexItemList&, LayoutUnit crossAxisOff
set, LayoutUnit availableFreeSpace); | 189 void layoutColumnReverse(const OrderedFlexItemList&, LayoutUnit crossAxisOff
set, LayoutUnit availableFreeSpace); |
189 void alignFlexLines(Vector<LineContext>&); | 190 void alignFlexLines(Vector<LineContext>&); |
190 void alignChildren(const Vector<LineContext>&); | 191 void alignChildren(const Vector<LineContext>&); |
191 void applyStretchAlignmentToChild(LayoutBox& child, LayoutUnit lineCrossAxis
Extent); | 192 void applyStretchAlignmentToChild(LayoutBox& child, LayoutUnit lineCrossAxis
Extent); |
192 void flipForRightToLeftColumn(); | 193 void flipForRightToLeftColumn(); |
193 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar
tEdge); | 194 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar
tEdge); |
194 | 195 |
(...skipping 12 matching lines...) Expand all Loading... |
207 | 208 |
208 // This is SizeIsUnknown outside of layoutBlock() | 209 // This is SizeIsUnknown outside of layoutBlock() |
209 mutable SizeDefiniteness m_hasDefiniteHeight; | 210 mutable SizeDefiniteness m_hasDefiniteHeight; |
210 }; | 211 }; |
211 | 212 |
212 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 213 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
213 | 214 |
214 } // namespace blink | 215 } // namespace blink |
215 | 216 |
216 #endif // LayoutFlexibleBox_h | 217 #endif // LayoutFlexibleBox_h |
OLD | NEW |