| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 size_t gridColumnCount() const; | 338 size_t gridColumnCount() const; |
| 339 size_t gridRowCount() const; | 339 size_t gridRowCount() const; |
| 340 | 340 |
| 341 bool isOrthogonalChild(const LayoutBox&) const; | 341 bool isOrthogonalChild(const LayoutBox&) const; |
| 342 GridTrackSizingDirection flowAwareDirectionForChild( | 342 GridTrackSizingDirection flowAwareDirectionForChild( |
| 343 const LayoutBox&, | 343 const LayoutBox&, |
| 344 GridTrackSizingDirection) const; | 344 GridTrackSizingDirection) const; |
| 345 | 345 |
| 346 bool cachedHasDefiniteLogicalHeight() const; | 346 bool cachedHasDefiniteLogicalHeight() const; |
| 347 | 347 |
| 348 size_t numTracks(GridTrackSizingDirection) const; |
| 349 |
| 348 typedef Vector<Vector<GridCell>> GridRepresentation; | 350 typedef Vector<Vector<GridCell>> GridRepresentation; |
| 349 GridRepresentation m_grid; | 351 GridRepresentation m_grid; |
| 350 bool m_gridIsDirty; | 352 bool m_gridIsDirty; |
| 351 Vector<LayoutUnit> m_rowPositions; | 353 Vector<LayoutUnit> m_rowPositions; |
| 352 Vector<LayoutUnit> m_columnPositions; | 354 Vector<LayoutUnit> m_columnPositions; |
| 353 LayoutUnit m_offsetBetweenColumns; | 355 LayoutUnit m_offsetBetweenColumns; |
| 354 LayoutUnit m_offsetBetweenRows; | 356 LayoutUnit m_offsetBetweenRows; |
| 355 HashMap<const LayoutBox*, GridArea> m_gridItemArea; | 357 HashMap<const LayoutBox*, GridArea> m_gridItemArea; |
| 356 OrderIterator m_orderIterator; | 358 OrderIterator m_orderIterator; |
| 357 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 359 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 372 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; | 374 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; |
| 373 | 375 |
| 374 Optional<bool> m_hasDefiniteLogicalHeight; | 376 Optional<bool> m_hasDefiniteLogicalHeight; |
| 375 }; | 377 }; |
| 376 | 378 |
| 377 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 379 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 378 | 380 |
| 379 } // namespace blink | 381 } // namespace blink |
| 380 | 382 |
| 381 #endif // LayoutGrid_h | 383 #endif // LayoutGrid_h |
| OLD | NEW |