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