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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 2080643002: [css-grid] Implement repeat(auto-fit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build (debug) fix Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutGrid.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.h b/third_party/WebKit/Source/core/layout/LayoutGrid.h
index 335e18ba7bc5ad3b2c541f0ef8b5eab0e9b85a42..b76730cdd7f894e25a67712bbede2a11b4d05ff4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.h
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.h
@@ -130,6 +130,9 @@ private:
size_t computeAutoRepeatTracksCount(GridTrackSizingDirection) const;
+ std::unique_ptr<Vector<size_t>> computeEmptyTracksCountForAutoRepeat(GridTrackSizingDirection, size_t insertionPoint) const;
+ size_t droppedTracksBeforeLine(GridTrackSizingDirection, size_t startLine) const;
+
void placeItemsOnGrid();
void populateExplicitGridAndOrderIterator();
PassOwnPtr<GridArea> createEmptyGridAreaAtSpecifiedPositionsOutsideGrid(const LayoutBox&, GridTrackSizingDirection, const GridSpan& specifiedPositions) const;
@@ -225,6 +228,9 @@ private:
size_t m_autoRepeatColumns { 0 };
size_t m_autoRepeatRows { 0 };
+
+ std::unique_ptr<Vector<size_t>> m_emptyColumnsCounter { nullptr };
+ std::unique_ptr<Vector<size_t>> m_emptyRowsCounter { nullptr };
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());

Powered by Google App Engine
This is Rietveld 408576698