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