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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // be laid out again. | 84 // be laid out again. |
85 bool setStaticPositionForPositionedLayout(LayoutBox& child); | 85 bool setStaticPositionForPositionedLayout(LayoutBox& child); |
86 | 86 |
87 protected: | 87 protected: |
88 void computeIntrinsicLogicalWidths( | 88 void computeIntrinsicLogicalWidths( |
89 LayoutUnit& minLogicalWidth, | 89 LayoutUnit& minLogicalWidth, |
90 LayoutUnit& maxLogicalWidth) const override; | 90 LayoutUnit& maxLogicalWidth) const override; |
91 | 91 |
92 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 92 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
93 void removeChild(LayoutObject*) override; | 93 void removeChild(LayoutObject*) override; |
| 94 ItemPosition selfAlignmentNormalBehavior() const override { |
| 95 return ItemPositionStretch; |
| 96 } |
94 | 97 |
95 private: | 98 private: |
96 enum FlexSign { | 99 enum FlexSign { |
97 PositiveFlexibility, | 100 PositiveFlexibility, |
98 NegativeFlexibility, | 101 NegativeFlexibility, |
99 }; | 102 }; |
100 | 103 |
101 enum ChildLayoutType { LayoutIfNeeded, ForceLayout, NeverLayout }; | 104 enum ChildLayoutType { LayoutIfNeeded, ForceLayout, NeverLayout }; |
102 | 105 |
103 enum class TransformedWritingMode { | 106 enum class TransformedWritingMode { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // This is SizeIsUnknown outside of layoutBlock() | 258 // This is SizeIsUnknown outside of layoutBlock() |
256 mutable SizeDefiniteness m_hasDefiniteHeight; | 259 mutable SizeDefiniteness m_hasDefiniteHeight; |
257 bool m_inLayout; | 260 bool m_inLayout; |
258 }; | 261 }; |
259 | 262 |
260 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 263 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
261 | 264 |
262 } // namespace blink | 265 } // namespace blink |
263 | 266 |
264 #endif // LayoutFlexibleBox_h | 267 #endif // LayoutFlexibleBox_h |
OLD | NEW |