| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 LayoutUnit staticInlinePositionForPositionedChild(const LayoutBox& child); | 79 LayoutUnit staticInlinePositionForPositionedChild(const LayoutBox& child); |
| 80 LayoutUnit staticBlockPositionForPositionedChild(const LayoutBox& child); | 80 LayoutUnit staticBlockPositionForPositionedChild(const LayoutBox& child); |
| 81 | 81 |
| 82 // Returns true if the position changed. In that case, the child will have t
o be | 82 // Returns true if the position changed. In that case, the child will have t
o be |
| 83 // laid out again. | 83 // laid out again. |
| 84 bool setStaticPositionForPositionedLayout(LayoutBox& child); | 84 bool setStaticPositionForPositionedLayout(LayoutBox& child); |
| 85 protected: | 85 protected: |
| 86 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; | 86 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; |
| 87 | 87 |
| 88 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | |
| 89 void removeChild(LayoutObject*) override; | 88 void removeChild(LayoutObject*) override; |
| 90 | 89 |
| 91 private: | 90 private: |
| 92 enum FlexSign { | 91 enum FlexSign { |
| 93 PositiveFlexibility, | 92 PositiveFlexibility, |
| 94 NegativeFlexibility, | 93 NegativeFlexibility, |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 enum ChildLayoutType { | 96 enum ChildLayoutType { |
| 98 LayoutIfNeeded, | 97 LayoutIfNeeded, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 205 |
| 207 mutable OrderIterator m_orderIterator; | 206 mutable OrderIterator m_orderIterator; |
| 208 int m_numberOfInFlowChildrenOnFirstLine; | 207 int m_numberOfInFlowChildrenOnFirstLine; |
| 209 }; | 208 }; |
| 210 | 209 |
| 211 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 210 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
| 212 | 211 |
| 213 } // namespace blink | 212 } // namespace blink |
| 214 | 213 |
| 215 #endif // LayoutFlexibleBox_h | 214 #endif // LayoutFlexibleBox_h |
| OLD | NEW |