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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 } | 294 } |
295 bool allowedToStretchChildAlongRowAxis(const LayoutBox& child) const { | 295 bool allowedToStretchChildAlongRowAxis(const LayoutBox& child) const { |
296 return justifySelfForChild(child).position() == ItemPositionStretch && | 296 return justifySelfForChild(child).position() == ItemPositionStretch && |
297 hasAutoSizeInRowAxis(child) && !hasAutoMarginsInRowAxis(child); | 297 hasAutoSizeInRowAxis(child) && !hasAutoMarginsInRowAxis(child); |
298 } | 298 } |
299 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; | 299 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; |
300 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; | 300 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; |
301 void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&); | 301 void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&); |
302 void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&); | 302 void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&); |
303 | 303 |
| 304 int baselinePosition( |
| 305 FontBaseline, |
| 306 bool firstLine, |
| 307 LineDirectionMode, |
| 308 LinePositionMode = PositionOnContainingLine) const override; |
| 309 int firstLineBoxBaseline() const override; |
| 310 int inlineBlockBaseline(LineDirectionMode) const override; |
| 311 |
304 #if ENABLE(ASSERT) | 312 #if ENABLE(ASSERT) |
305 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, | 313 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, |
306 GridSizingData&) const; | 314 GridSizingData&) const; |
307 #endif | 315 #endif |
308 | 316 |
309 LayoutUnit gridGapForDirection(GridTrackSizingDirection, | 317 LayoutUnit gridGapForDirection(GridTrackSizingDirection, |
310 SizingOperation) const; | 318 SizingOperation) const; |
311 LayoutUnit guttersSize(GridTrackSizingDirection, | 319 LayoutUnit guttersSize(GridTrackSizingDirection, |
312 size_t startLine, | 320 size_t startLine, |
313 size_t span, | 321 size_t span, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; | 363 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; |
356 | 364 |
357 Optional<bool> m_hasDefiniteLogicalHeight; | 365 Optional<bool> m_hasDefiniteLogicalHeight; |
358 }; | 366 }; |
359 | 367 |
360 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 368 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
361 | 369 |
362 } // namespace blink | 370 } // namespace blink |
363 | 371 |
364 #endif // LayoutGrid_h | 372 #endif // LayoutGrid_h |
OLD | NEW |