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( | |
95 const LayoutBox* child = nullptr) const override { | |
96 return ItemPositionStretch; | |
97 } | |
98 | 94 |
99 private: | 95 private: |
100 enum FlexSign { | 96 enum FlexSign { |
101 PositiveFlexibility, | 97 PositiveFlexibility, |
102 NegativeFlexibility, | 98 NegativeFlexibility, |
103 }; | 99 }; |
104 | 100 |
105 enum ChildLayoutType { LayoutIfNeeded, ForceLayout, NeverLayout }; | 101 enum ChildLayoutType { LayoutIfNeeded, ForceLayout, NeverLayout }; |
106 | 102 |
107 enum class TransformedWritingMode { | 103 enum class TransformedWritingMode { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // This is SizeIsUnknown outside of layoutBlock() | 252 // This is SizeIsUnknown outside of layoutBlock() |
257 mutable SizeDefiniteness m_hasDefiniteHeight; | 253 mutable SizeDefiniteness m_hasDefiniteHeight; |
258 bool m_inLayout; | 254 bool m_inLayout; |
259 }; | 255 }; |
260 | 256 |
261 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 257 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
262 | 258 |
263 } // namespace blink | 259 } // namespace blink |
264 | 260 |
265 #endif // LayoutFlexibleBox_h | 261 #endif // LayoutFlexibleBox_h |
OLD | NEW |