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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |