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

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

Issue 2216133003: [css-flexbox] Simplify the "child intrinsic height" logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more simplification Created 4 years, 4 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Use an inline capacity of 8, since flexbox containers usually have less t han 8 children. 110 // Use an inline capacity of 8, since flexbox containers usually have less t han 8 children.
111 typedef Vector<LayoutRect, 8> ChildFrameRects; 111 typedef Vector<LayoutRect, 8> ChildFrameRects;
112 112
113 bool hasOrthogonalFlow(const LayoutBox& child) const; 113 bool hasOrthogonalFlow(const LayoutBox& child) const;
114 bool isColumnFlow() const; 114 bool isColumnFlow() const;
115 bool isLeftToRightFlow() const; 115 bool isLeftToRightFlow() const;
116 bool isMultiline() const; 116 bool isMultiline() const;
117 Length flexBasisForChild(const LayoutBox& child) const; 117 Length flexBasisForChild(const LayoutBox& child) const;
118 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const; 118 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const;
119 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const; 119 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const;
120 LayoutUnit childIntrinsicHeight(const LayoutBox& child) const; 120 LayoutUnit childIntrinsicLogicalHeight(const LayoutBox& child) const;
121 LayoutUnit childIntrinsicWidth(const LayoutBox& child) const; 121 LayoutUnit childIntrinsicLogicalWidth(const LayoutBox& child) const;
122 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const; 122 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const;
123 LayoutUnit mainAxisContentExtentForChild(const LayoutBox& child) const; 123 LayoutUnit mainAxisContentExtentForChild(const LayoutBox& child) const;
124 LayoutUnit crossAxisExtent() const; 124 LayoutUnit crossAxisExtent() const;
125 LayoutUnit mainAxisExtent() const; 125 LayoutUnit mainAxisExtent() const;
126 LayoutUnit crossAxisContentExtent() const; 126 LayoutUnit crossAxisContentExtent() const;
127 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight); 127 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight);
128 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c onst Length& size); 128 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c onst Length& size);
129 TransformedWritingMode getTransformedWritingMode() const; 129 TransformedWritingMode getTransformedWritingMode() const;
130 LayoutUnit flowAwareBorderStart() const; 130 LayoutUnit flowAwareBorderStart() const;
131 LayoutUnit flowAwareBorderEnd() const; 131 LayoutUnit flowAwareBorderEnd() const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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