Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

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

Issue 2411943002: [css-flexbox] Don't force layout for overflow: auto anymore (Closed)
Patch Set: further simplify & add comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 LayoutUnit computeInnerFlexBaseSizeForChild( 158 LayoutUnit computeInnerFlexBaseSizeForChild(
159 LayoutBox& child, 159 LayoutBox& child,
160 LayoutUnit mainAxisBorderAndPadding, 160 LayoutUnit mainAxisBorderAndPadding,
161 ChildLayoutType = LayoutIfNeeded); 161 ChildLayoutType = LayoutIfNeeded);
162 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); 162 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit);
163 ItemPosition alignmentForChild(const LayoutBox& child) const; 163 ItemPosition alignmentForChild(const LayoutBox& child) const;
164 bool mainAxisLengthIsDefinite(const LayoutBox& child, 164 bool mainAxisLengthIsDefinite(const LayoutBox& child,
165 const Length& flexBasis) const; 165 const Length& flexBasis) const;
166 bool crossAxisLengthIsDefinite(const LayoutBox& child, 166 bool crossAxisLengthIsDefinite(const LayoutBox& child,
167 const Length& flexBasis) const; 167 const Length& flexBasis) const;
168 bool childFlexBaseSizeRequiresLayout(const LayoutBox& child) const;
169 bool needToStretchChildLogicalHeight(const LayoutBox& child) const; 168 bool needToStretchChildLogicalHeight(const LayoutBox& child) const;
170 bool childHasIntrinsicMainAxisSize(const LayoutBox& child) const; 169 bool childHasIntrinsicMainAxisSize(const LayoutBox& child) const;
171 EOverflow mainAxisOverflowForChild(const LayoutBox& child) const; 170 EOverflow mainAxisOverflowForChild(const LayoutBox& child) const;
172 EOverflow crossAxisOverflowForChild(const LayoutBox& child) const; 171 EOverflow crossAxisOverflowForChild(const LayoutBox& child) const;
173 void cacheChildMainSize(const LayoutBox& child); 172 void cacheChildMainSize(const LayoutBox& child);
174 173
175 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&); 174 void layoutFlexItems(bool relayoutChildren, SubtreeLayoutScope&);
176 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, 175 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&,
177 LayoutUnit& availableFreeSpace); 176 LayoutUnit& availableFreeSpace);
178 void updateAutoMarginsInMainAxis(LayoutBox& child, 177 void updateAutoMarginsInMainAxis(LayoutBox& child,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 271
273 // This is SizeIsUnknown outside of layoutBlock() 272 // This is SizeIsUnknown outside of layoutBlock()
274 mutable SizeDefiniteness m_hasDefiniteHeight; 273 mutable SizeDefiniteness m_hasDefiniteHeight;
275 }; 274 };
276 275
277 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 276 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
278 277
279 } // namespace blink 278 } // namespace blink
280 279
281 #endif // LayoutFlexibleBox_h 280 #endif // LayoutFlexibleBox_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698