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

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

Issue 2526383004: [css-grid] Cleanup LayoutGrid::Grid (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3fe38083260ddb7b5642c9fff26cad6f4219bc61..5c8f626b1c38031b2640dc2ce8c731b71121f871 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.h
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.h
@@ -345,10 +345,15 @@ class LayoutGrid final : public LayoutBlock {
size_t numTracks(GridTrackSizingDirection) const;
void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize);
- void insert(LayoutBox&, const GridArea&, bool isOrthogonalChild);
+ void insert(LayoutBox&, const GridArea&);
- bool hasInFlowGridItems() const { return !m_gridItemArea.isEmpty(); }
- bool hasAnyOrthogonalChildren() const { return m_hasAnyOrthogonalChildren; }
+ // Note that out of flow children are not grid items.
+ bool hasGridItems() const { return !m_gridItemArea.isEmpty(); }
Manuel Rego 2016/11/25 18:23:25 Nit: Maybe we could have a isEmpty() method. Not 1
svillar 2016/11/28 11:21:25 I don't think we need that. We could always check
Manuel Rego 2016/11/28 11:46:04 It's clear I choose a bad name, I was thinking in:
+
+ // TODO(svillar): move this to SizingData once it's passed to
+ // placeItemsOnGrid.
+ bool hasAnyOrthogonalGridItem() const { return m_hasAnyOrthogonalGridItem; }
+ void setHasAnyOrthogonalGridItem(bool);
GridArea gridItemArea(const LayoutBox& item) const;
void setGridItemArea(const LayoutBox& item, GridArea);
@@ -397,7 +402,7 @@ class LayoutGrid final : public LayoutBlock {
size_t m_autoRepeatColumns{0};
size_t m_autoRepeatRows{0};
- bool m_hasAnyOrthogonalChildren{false};
+ bool m_hasAnyOrthogonalGridItem{false};
GridAsMatrix m_grid;
HashMap<const LayoutBox*, GridArea> m_gridItemArea;
« 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