Chromium Code Reviews

Side by Side Diff: Source/core/layout/LayoutFlexibleBox.h

Issue 1268253002: Rename mainAxisIsIndefinite to mainAxisIsDefinite for easier readability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 111 matching lines...)
122 LayoutUnit crossAxisMarginExtentForChild(LayoutBox& child) const; 122 LayoutUnit crossAxisMarginExtentForChild(LayoutBox& child) const;
123 LayoutUnit crossAxisScrollbarExtent() const; 123 LayoutUnit crossAxisScrollbarExtent() const;
124 LayoutUnit crossAxisScrollbarExtentForChild(LayoutBox& child) const; 124 LayoutUnit crossAxisScrollbarExtentForChild(LayoutBox& child) const;
125 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const; 125 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const;
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 mainAxisLengthIsIndefinite(LayoutBox& child, const Length& flexBasis) c onst; 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 136
137 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); 137 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&);
138 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace); 138 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace);
139 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs et); 139 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs et);
140 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; 140 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const;
141 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig nmentSpace); 141 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig nmentSpace);
142 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); 142 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&);
(...skipping 29 matching lines...)
172 172
173 mutable OrderIterator m_orderIterator; 173 mutable OrderIterator m_orderIterator;
174 int m_numberOfInFlowChildrenOnFirstLine; 174 int m_numberOfInFlowChildrenOnFirstLine;
175 }; 175 };
176 176
177 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 177 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
178 178
179 } // namespace blink 179 } // namespace blink
180 180
181 #endif // LayoutFlexibleBox_h 181 #endif // LayoutFlexibleBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine