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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const; | 120 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const; |
121 // FIXME: Supporting layout deltas. | 121 // FIXME: Supporting layout deltas. |
122 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); | 122 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); |
123 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); | 123 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); |
124 ItemPosition alignmentForChild(LayoutBox& child) const; | 124 ItemPosition alignmentForChild(LayoutBox& child) const; |
125 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const; | 125 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const; |
126 LayoutUnit preferredMainAxisContentExtentForChild(LayoutBox& child, bool rel
ayoutChildren = false); | 126 LayoutUnit preferredMainAxisContentExtentForChild(LayoutBox& child, bool rel
ayoutChildren = false); |
127 bool preferredMainAxisExtentDependsOnLayout(const Length& flexBasis) const; | 127 bool preferredMainAxisExtentDependsOnLayout(const Length& flexBasis) const; |
128 bool childPreferredMainAxisContentExtentRequiresLayout(LayoutBox& child) con
st; | 128 bool childPreferredMainAxisContentExtentRequiresLayout(LayoutBox& child) con
st; |
129 bool needToStretchChildLogicalHeight(LayoutBox& child) const; | 129 bool needToStretchChildLogicalHeight(LayoutBox& child) const; |
| 130 EOverflow mainAxisOverflowForChild(LayoutBox& child) const; |
130 | 131 |
131 void layoutFlexItems(bool relayoutChildren); | 132 void layoutFlexItems(bool relayoutChildren); |
132 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace); | 133 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace); |
133 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs
et); | 134 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs
et); |
134 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; | 135 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; |
135 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig
nmentSpace); | 136 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig
nmentSpace); |
136 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); | 137 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); |
137 LayoutUnit clientLogicalBottomAfterRepositioning(); | 138 LayoutUnit clientLogicalBottomAfterRepositioning(); |
138 void appendChildFrameRects(ChildFrameRects&); | 139 void appendChildFrameRects(ChildFrameRects&); |
139 | 140 |
(...skipping 27 matching lines...) Expand all Loading... |
167 | 168 |
168 mutable OrderIterator m_orderIterator; | 169 mutable OrderIterator m_orderIterator; |
169 int m_numberOfInFlowChildrenOnFirstLine; | 170 int m_numberOfInFlowChildrenOnFirstLine; |
170 }; | 171 }; |
171 | 172 |
172 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
173 | 174 |
174 } // namespace blink | 175 } // namespace blink |
175 | 176 |
176 #endif // LayoutFlexibleBox_h | 177 #endif // LayoutFlexibleBox_h |
OLD | NEW |