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