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