| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // FIXME: Supporting layout deltas. | 126 // FIXME: Supporting layout deltas. |
| 127 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); | 127 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); |
| 128 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); | 128 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); |
| 129 ItemPosition alignmentForChild(LayoutBox& child) const; | 129 ItemPosition alignmentForChild(LayoutBox& child) const; |
| 130 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const; | 130 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const; |
| 131 LayoutUnit computeInnerFlexBaseSizeForChild(LayoutBox& child, ChildLayoutTyp
e = LayoutIfNeeded); | 131 LayoutUnit computeInnerFlexBaseSizeForChild(LayoutBox& child, ChildLayoutTyp
e = LayoutIfNeeded); |
| 132 bool mainAxisLengthIsDefinite(LayoutBox& child, const Length& flexBasis) con
st; | 132 bool mainAxisLengthIsDefinite(LayoutBox& child, const Length& flexBasis) con
st; |
| 133 bool childFlexBaseSizeRequiresLayout(LayoutBox& child) const; | 133 bool childFlexBaseSizeRequiresLayout(LayoutBox& child) const; |
| 134 bool needToStretchChildLogicalHeight(LayoutBox& child) const; | 134 bool needToStretchChildLogicalHeight(LayoutBox& child) const; |
| 135 EOverflow mainAxisOverflowForChild(LayoutBox& child) const; | 135 EOverflow mainAxisOverflowForChild(LayoutBox& child) const; |
| 136 EOverflow crossAxisOverflowForChild(LayoutBox& child) const; |
| 136 | 137 |
| 137 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); | 138 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); |
| 138 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace); | 139 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit
& availableFreeSpace); |
| 139 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs
et); | 140 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs
et); |
| 140 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; | 141 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; |
| 141 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig
nmentSpace); | 142 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig
nmentSpace); |
| 142 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); | 143 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); |
| 143 LayoutUnit clientLogicalBottomAfterRepositioning(); | 144 LayoutUnit clientLogicalBottomAfterRepositioning(); |
| 144 | 145 |
| 145 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, L
ayoutBox& child); | 146 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, L
ayoutBox& child); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 172 | 173 |
| 173 mutable OrderIterator m_orderIterator; | 174 mutable OrderIterator m_orderIterator; |
| 174 int m_numberOfInFlowChildrenOnFirstLine; | 175 int m_numberOfInFlowChildrenOnFirstLine; |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 178 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
| 178 | 179 |
| 179 } // namespace blink | 180 } // namespace blink |
| 180 | 181 |
| 181 #endif // LayoutFlexibleBox_h | 182 #endif // LayoutFlexibleBox_h |
| OLD | NEW |