| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 LayoutUnit ComputeIntrinsicLogicalContentHeightUsing( | 122 LayoutUnit ComputeIntrinsicLogicalContentHeightUsing( |
| 123 const Length& logical_height_length, | 123 const Length& logical_height_length, |
| 124 LayoutUnit intrinsic_content_height, | 124 LayoutUnit intrinsic_content_height, |
| 125 LayoutUnit border_and_padding) const override; | 125 LayoutUnit border_and_padding) const override; |
| 126 | 126 |
| 127 void AddChild(LayoutObject* new_child, | 127 void AddChild(LayoutObject* new_child, |
| 128 LayoutObject* before_child = nullptr) override; | 128 LayoutObject* before_child = nullptr) override; |
| 129 void RemoveChild(LayoutObject*) override; | 129 void RemoveChild(LayoutObject*) override; |
| 130 | 130 |
| 131 bool SelfAlignmentChangedToStretchInRowAxis(const ComputedStyle& old_style, |
| 132 const ComputedStyle& new_style, |
| 133 const LayoutBox&); |
| 134 bool SelfAlignmentChangedFromStretchInRowAxis(const ComputedStyle& old_style, |
| 135 const ComputedStyle& new_style, |
| 136 const LayoutBox&); |
| 137 bool SelfAlignmentChangedFromStretchInColumnAxis( |
| 138 const ComputedStyle& old_style, |
| 139 const ComputedStyle& new_style, |
| 140 const LayoutBox&); |
| 131 void StyleDidChange(StyleDifference, const ComputedStyle*) override; | 141 void StyleDidChange(StyleDifference, const ComputedStyle*) override; |
| 132 | 142 |
| 133 Optional<LayoutUnit> AvailableSpaceForGutters(GridTrackSizingDirection) const; | 143 Optional<LayoutUnit> AvailableSpaceForGutters(GridTrackSizingDirection) const; |
| 134 | 144 |
| 135 bool ExplicitGridDidResize(const ComputedStyle&) const; | 145 bool ExplicitGridDidResize(const ComputedStyle&) const; |
| 136 bool NamedGridLinesDefinitionDidChange(const ComputedStyle&) const; | 146 bool NamedGridLinesDefinitionDidChange(const ComputedStyle&) const; |
| 137 | 147 |
| 138 size_t ComputeAutoRepeatTracksCount( | 148 size_t ComputeAutoRepeatTracksCount( |
| 139 GridTrackSizingDirection, | 149 GridTrackSizingDirection, |
| 140 Optional<LayoutUnit> available_size) const; | 150 Optional<LayoutUnit> available_size) const; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 LayoutUnit max_content_height_{-1}; | 316 LayoutUnit max_content_height_{-1}; |
| 307 | 317 |
| 308 Optional<bool> has_definite_logical_height_; | 318 Optional<bool> has_definite_logical_height_; |
| 309 }; | 319 }; |
| 310 | 320 |
| 311 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); | 321 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); |
| 312 | 322 |
| 313 } // namespace blink | 323 } // namespace blink |
| 314 | 324 |
| 315 #endif // LayoutGrid_h | 325 #endif // LayoutGrid_h |
| OLD | NEW |