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

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 906323003: [CSS Grid Layout] Columns set in percentages collapse to auto width (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sergio-indefinite
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderGrid.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 { 153 {
154 ASSERT(!gridIsDirty()); 154 ASSERT(!gridIsDirty());
155 return m_grid[0].size(); 155 return m_grid[0].size();
156 } 156 }
157 size_t gridRowCount() const 157 size_t gridRowCount() const
158 { 158 {
159 ASSERT(!gridIsDirty()); 159 ASSERT(!gridIsDirty());
160 return m_grid.size(); 160 return m_grid.size();
161 } 161 }
162 162
163 bool hasDefiniteLogicalSize(GridTrackSizingDirection) const;
164
163 typedef Vector<Vector<GridCell> > GridRepresentation; 165 typedef Vector<Vector<GridCell> > GridRepresentation;
164 GridRepresentation m_grid; 166 GridRepresentation m_grid;
165 bool m_gridIsDirty; 167 bool m_gridIsDirty;
166 Vector<LayoutUnit> m_rowPositions; 168 Vector<LayoutUnit> m_rowPositions;
167 Vector<LayoutUnit> m_columnPositions; 169 Vector<LayoutUnit> m_columnPositions;
168 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; 170 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate;
169 OrderIterator m_orderIterator; 171 OrderIterator m_orderIterator;
170 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 172 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
171 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 173 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
172 }; 174 };
173 175
174 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 176 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
175 177
176 } // namespace blink 178 } // namespace blink
177 179
178 #endif // RenderGrid_h 180 #endif // RenderGrid_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698