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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool IsDescentBaselineForChild(const LayoutBox&, GridAxis) const; | 248 bool IsDescentBaselineForChild(const LayoutBox&, GridAxis) const; |
249 | 249 |
250 LayoutUnit MarginOverForChild(const LayoutBox&, GridAxis) const; | 250 LayoutUnit MarginOverForChild(const LayoutBox&, GridAxis) const; |
251 LayoutUnit MarginUnderForChild(const LayoutBox&, GridAxis) const; | 251 LayoutUnit MarginUnderForChild(const LayoutBox&, GridAxis) const; |
252 LayoutUnit LogicalAscentForChild(const LayoutBox&, GridAxis) const; | 252 LayoutUnit LogicalAscentForChild(const LayoutBox&, GridAxis) const; |
253 LayoutUnit AscentForChild(const LayoutBox&, GridAxis) const; | 253 LayoutUnit AscentForChild(const LayoutBox&, GridAxis) const; |
254 LayoutUnit DescentForChild(const LayoutBox&, | 254 LayoutUnit DescentForChild(const LayoutBox&, |
255 LayoutUnit ascent, | 255 LayoutUnit ascent, |
256 GridAxis) const; | 256 GridAxis) const; |
257 | 257 |
258 bool BaselineMayAffectIntrinsicWidth() const; | |
259 bool BaselineMayAffectIntrinsicHeight() const; | |
260 void ComputeBaselineAlignmentContext(); | 258 void ComputeBaselineAlignmentContext(); |
261 void UpdateBaselineAlignmentContextIfNeeded(LayoutBox&, GridAxis); | 259 void UpdateBaselineAlignmentContextIfNeeded(LayoutBox&, GridAxis); |
262 | 260 |
263 LayoutUnit ColumnAxisBaselineOffsetForChild(const LayoutBox&) const; | 261 LayoutUnit ColumnAxisBaselineOffsetForChild(const LayoutBox&) const; |
264 LayoutUnit RowAxisBaselineOffsetForChild(const LayoutBox&) const; | 262 LayoutUnit RowAxisBaselineOffsetForChild(const LayoutBox&) const; |
265 | 263 |
266 LayoutUnit GridGap(GridTrackSizingDirection, | 264 LayoutUnit GridGap(GridTrackSizingDirection, |
267 Optional<LayoutUnit> available_size) const; | 265 Optional<LayoutUnit> available_size) const; |
268 LayoutUnit GridGap(GridTrackSizingDirection) const; | 266 LayoutUnit GridGap(GridTrackSizingDirection) const; |
269 | 267 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 LayoutUnit max_content_height_{-1}; | 304 LayoutUnit max_content_height_{-1}; |
307 | 305 |
308 Optional<bool> has_definite_logical_height_; | 306 Optional<bool> has_definite_logical_height_; |
309 }; | 307 }; |
310 | 308 |
311 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); | 309 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, IsLayoutGrid()); |
312 | 310 |
313 } // namespace blink | 311 } // namespace blink |
314 | 312 |
315 #endif // LayoutGrid_h | 313 #endif // LayoutGrid_h |
OLD | NEW |