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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 LayoutPoint FindChildLogicalPosition(const LayoutBox&) const; | 198 LayoutPoint FindChildLogicalPosition(const LayoutBox&) const; |
199 | 199 |
200 LayoutUnit GridAreaBreadthForChildIncludingAlignmentOffsets( | 200 LayoutUnit GridAreaBreadthForChildIncludingAlignmentOffsets( |
201 const LayoutBox&, | 201 const LayoutBox&, |
202 GridTrackSizingDirection) const; | 202 GridTrackSizingDirection) const; |
203 | 203 |
204 void ApplyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection); | 204 void ApplyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection); |
205 | 205 |
206 void PaintChildren(const PaintInfo&, const LayoutPoint&) const override; | 206 void PaintChildren(const PaintInfo&, const LayoutPoint&) const override; |
207 | 207 |
208 LayoutUnit MarginLogicalHeightForChild(const LayoutBox&) const; | 208 LayoutUnit MarginLogicalSizeForChild(GridTrackSizingDirection, |
| 209 const LayoutBox&) const; |
209 LayoutUnit ComputeMarginLogicalSizeForChild(MarginDirection, | 210 LayoutUnit ComputeMarginLogicalSizeForChild(MarginDirection, |
210 const LayoutBox&) const; | 211 const LayoutBox&) const; |
211 LayoutUnit AvailableAlignmentSpaceForChildBeforeStretching( | 212 LayoutUnit AvailableAlignmentSpaceForChildBeforeStretching( |
212 LayoutUnit grid_area_breadth_for_child, | 213 LayoutUnit grid_area_breadth_for_child, |
213 const LayoutBox&) const; | 214 const LayoutBox&) const; |
214 StyleSelfAlignmentData JustifySelfForChild(const LayoutBox&) const; | 215 StyleSelfAlignmentData JustifySelfForChild(const LayoutBox&) const; |
215 StyleSelfAlignmentData AlignSelfForChild(const LayoutBox&) const; | 216 StyleSelfAlignmentData AlignSelfForChild(const LayoutBox&) const; |
216 void ApplyStretchAlignmentToChildIfNeeded(LayoutBox&); | 217 void ApplyStretchAlignmentToChildIfNeeded(LayoutBox&); |
217 bool HasAutoSizeInColumnAxis(const LayoutBox& child) const { | 218 bool HasAutoSizeInColumnAxis(const LayoutBox& child) const { |
218 return IsHorizontalWritingMode() ? child.StyleRef().Height().IsAuto() | 219 return IsHorizontalWritingMode() ? child.StyleRef().Height().IsAuto() |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 LayoutUnit max_content_height_{-1}; | 307 LayoutUnit max_content_height_{-1}; |
307 | 308 |
308 Optional<bool> has_definite_logical_height_; | 309 Optional<bool> has_definite_logical_height_; |
309 }; | 310 }; |
310 | 311 |
311 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); | 312 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); |
312 | 313 |
313 } // namespace blink | 314 } // namespace blink |
314 | 315 |
315 #endif // LayoutGrid_h | 316 #endif // LayoutGrid_h |
OLD | NEW |