Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 2521553002: [css-grid] Isolate internal grid size from the actual grid size (Closed)
Patch Set: Patch for landing. Rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698