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

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

Issue 2342663002: [css-flexbox] Fix size comparison when scrollbars are present (Closed)
Patch Set: add test Created 4 years, 3 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool hasOrthogonalFlow(const LayoutBox& child) const; 114 bool hasOrthogonalFlow(const LayoutBox& child) const;
115 bool isColumnFlow() const; 115 bool isColumnFlow() const;
116 bool isLeftToRightFlow() const; 116 bool isLeftToRightFlow() const;
117 bool isMultiline() const; 117 bool isMultiline() const;
118 Length flexBasisForChild(const LayoutBox& child) const; 118 Length flexBasisForChild(const LayoutBox& child) const;
119 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const; 119 LayoutUnit crossAxisExtentForChild(const LayoutBox& child) const;
120 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const; 120 LayoutUnit crossAxisIntrinsicExtentForChild(const LayoutBox& child) const;
121 LayoutUnit childIntrinsicLogicalHeight(const LayoutBox& child) const; 121 LayoutUnit childIntrinsicLogicalHeight(const LayoutBox& child) const;
122 LayoutUnit childIntrinsicLogicalWidth(const LayoutBox& child) const; 122 LayoutUnit childIntrinsicLogicalWidth(const LayoutBox& child) const;
123 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const; 123 LayoutUnit mainAxisExtentForChild(const LayoutBox& child) const;
124 LayoutUnit mainAxisContentExtentForChild(const LayoutBox& child) const; 124 LayoutUnit mainAxisContentExtentForChildIncludingScrollbar(const LayoutBox& child) const;
125 LayoutUnit crossAxisExtent() const; 125 LayoutUnit crossAxisExtent() const;
126 LayoutUnit mainAxisExtent() const; 126 LayoutUnit mainAxisExtent() const;
127 LayoutUnit crossAxisContentExtent() const; 127 LayoutUnit crossAxisContentExtent() const;
128 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight); 128 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight);
129 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c onst Length& size); 129 LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, c onst Length& size);
130 TransformedWritingMode getTransformedWritingMode() const; 130 TransformedWritingMode getTransformedWritingMode() const;
131 LayoutUnit flowAwareBorderStart() const; 131 LayoutUnit flowAwareBorderStart() const;
132 LayoutUnit flowAwareBorderEnd() const; 132 LayoutUnit flowAwareBorderEnd() const;
133 LayoutUnit flowAwareBorderBefore() const; 133 LayoutUnit flowAwareBorderBefore() const;
134 LayoutUnit flowAwareBorderAfter() const; 134 LayoutUnit flowAwareBorderAfter() const;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 // This is SizeIsUnknown outside of layoutBlock() 210 // This is SizeIsUnknown outside of layoutBlock()
211 mutable SizeDefiniteness m_hasDefiniteHeight; 211 mutable SizeDefiniteness m_hasDefiniteHeight;
212 }; 212 };
213 213
214 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 214 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
215 215
216 } // namespace blink 216 } // namespace blink
217 217
218 #endif // LayoutFlexibleBox_h 218 #endif // LayoutFlexibleBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698