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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 LayoutUnit flowAwareMarginStartForChild(const LayoutBox& child) const; | 138 LayoutUnit flowAwareMarginStartForChild(const LayoutBox& child) const; |
139 LayoutUnit flowAwareMarginEndForChild(const LayoutBox& child) const; | 139 LayoutUnit flowAwareMarginEndForChild(const LayoutBox& child) const; |
140 LayoutUnit flowAwareMarginBeforeForChild(const LayoutBox& child) const; | 140 LayoutUnit flowAwareMarginBeforeForChild(const LayoutBox& child) const; |
141 LayoutUnit crossAxisMarginExtentForChild(const LayoutBox& child) const; | 141 LayoutUnit crossAxisMarginExtentForChild(const LayoutBox& child) const; |
142 LayoutUnit crossAxisScrollbarExtent() const; | 142 LayoutUnit crossAxisScrollbarExtent() const; |
143 LayoutUnit crossAxisScrollbarExtentForChild(const LayoutBox& child) const; | 143 LayoutUnit crossAxisScrollbarExtentForChild(const LayoutBox& child) const; |
144 LayoutPoint flowAwareLocationForChild(const LayoutBox& child) const; | 144 LayoutPoint flowAwareLocationForChild(const LayoutBox& child) const; |
145 bool useChildAspectRatio(const LayoutBox& child) const; | 145 bool useChildAspectRatio(const LayoutBox& child) const; |
146 LayoutUnit computeMainSizeFromAspectRatioUsing(const LayoutBox& child, Lengt
h crossSizeLength) const; | 146 LayoutUnit computeMainSizeFromAspectRatioUsing(const LayoutBox& child, Lengt
h crossSizeLength) const; |
147 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); | 147 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); |
| 148 LayoutUnit computeInnerFlexBaseSizeForChild(LayoutBox& child, LayoutUnit mai
nAxisBorderAndPadding, ChildLayoutType = LayoutIfNeeded); |
148 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); | 149 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); |
149 ItemPosition alignmentForChild(const LayoutBox& child) const; | 150 ItemPosition alignmentForChild(const LayoutBox& child) const; |
150 LayoutUnit computeInnerFlexBaseSizeForChild(LayoutBox& child, LayoutUnit mai
nAxisBorderAndPadding, ChildLayoutType = LayoutIfNeeded); | |
151 bool mainAxisLengthIsDefinite(const LayoutBox& child, const Length& flexBasi
s) const; | 151 bool mainAxisLengthIsDefinite(const LayoutBox& child, const Length& flexBasi
s) const; |
152 bool crossAxisLengthIsDefinite(const LayoutBox& child, const Length& flexBas
is) const; | 152 bool crossAxisLengthIsDefinite(const LayoutBox& child, const Length& flexBas
is) const; |
153 bool childFlexBaseSizeRequiresLayout(const LayoutBox& child) const; | 153 bool childFlexBaseSizeRequiresLayout(const LayoutBox& child) const; |
154 bool needToStretchChildLogicalHeight(const LayoutBox& child) const; | 154 bool needToStretchChildLogicalHeight(const LayoutBox& child) const; |
155 bool childHasIntrinsicMainAxisSize(const LayoutBox& child) const; | 155 bool childHasIntrinsicMainAxisSize(const LayoutBox& child) const; |
156 EOverflow mainAxisOverflowForChild(const LayoutBox& child) const; | 156 EOverflow mainAxisOverflowForChild(const LayoutBox& child) const; |
157 EOverflow crossAxisOverflowForChild(const LayoutBox& child) const; | 157 EOverflow crossAxisOverflowForChild(const LayoutBox& child) const; |
158 void cacheChildMainSize(const LayoutBox& child); | 158 void cacheChildMainSize(const LayoutBox& child); |
159 | 159 |
160 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); | 160 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 // This is SizeIsUnknown outside of layoutBlock() | 209 // This is SizeIsUnknown outside of layoutBlock() |
210 mutable SizeDefiniteness m_hasDefiniteHeight; | 210 mutable SizeDefiniteness m_hasDefiniteHeight; |
211 }; | 211 }; |
212 | 212 |
213 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 213 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
214 | 214 |
215 } // namespace blink | 215 } // namespace blink |
216 | 216 |
217 #endif // LayoutFlexibleBox_h | 217 #endif // LayoutFlexibleBox_h |
OLD | NEW |