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

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

Issue 1309513008: [css-grid] Implement grid gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch for landing Created 5 years, 2 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ASSERT(!m_gridIsDirty); 65 ASSERT(!m_gridIsDirty);
66 return m_columnPositions; 66 return m_columnPositions;
67 } 67 }
68 68
69 const Vector<LayoutUnit>& rowPositions() const 69 const Vector<LayoutUnit>& rowPositions() const
70 { 70 {
71 ASSERT(!m_gridIsDirty); 71 ASSERT(!m_gridIsDirty);
72 return m_rowPositions; 72 return m_rowPositions;
73 } 73 }
74 74
75 LayoutUnit guttersSize(GridTrackSizingDirection, size_t span) const;
76
75 typedef Vector<LayoutBox*, 1> GridCell; 77 typedef Vector<LayoutBox*, 1> GridCell;
76 const GridCell& gridCell(int row, int column) const 78 const GridCell& gridCell(int row, int column) const
77 { 79 {
78 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); 80 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty);
79 return m_grid[row][column]; 81 return m_grid[row][column];
80 } 82 }
81 83
82 const Vector<LayoutBox*>& itemsOverflowingGridArea() const 84 const Vector<LayoutBox*>& itemsOverflowingGridArea() const
83 { 85 {
84 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); 86 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 OrderIterator m_orderIterator; 204 OrderIterator m_orderIterator;
203 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; 205 Vector<LayoutBox*> m_gridItemsOverflowingGridArea;
204 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; 206 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap;
205 }; 207 };
206 208
207 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 209 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
208 210
209 } // namespace blink 211 } // namespace blink
210 212
211 #endif // LayoutGrid_h 213 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698