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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 ASSERT(!m_gridIsDirty); | 64 ASSERT(!m_gridIsDirty); |
65 return m_columnPositions; | 65 return m_columnPositions; |
66 } | 66 } |
67 | 67 |
68 const Vector<LayoutUnit>& rowPositions() const | 68 const Vector<LayoutUnit>& rowPositions() const |
69 { | 69 { |
70 ASSERT(!m_gridIsDirty); | 70 ASSERT(!m_gridIsDirty); |
71 return m_rowPositions; | 71 return m_rowPositions; |
72 } | 72 } |
73 | 73 |
74 LayoutUnit guttersSize(GridTrackSizingDirection, size_t span) const; | 74 LayoutUnit guttersSize(GridTrackSizingDirection, size_t span, LayoutUnit ava ilableSize) const; |
Manuel Rego
2016/07/01 06:45:57
I'm not really convinced about this API, specially
svillar
2016/07/13 09:08:08
FWIW I'm making it private in the auto-fit patch.
| |
75 | 75 |
76 LayoutUnit offsetBetweenTracks(GridTrackSizingDirection direction) const | 76 LayoutUnit offsetBetweenTracks(GridTrackSizingDirection direction) const |
77 { | 77 { |
78 return direction == ForColumns ? m_offsetBetweenColumns : m_offsetBetwee nRows; | 78 return direction == ForColumns ? m_offsetBetweenColumns : m_offsetBetwee nRows; |
79 } | 79 } |
80 | 80 |
81 typedef Vector<LayoutBox*, 1> GridCell; | 81 typedef Vector<LayoutBox*, 1> GridCell; |
82 const GridCell& gridCell(int row, int column) const | 82 const GridCell& gridCell(int row, int column) const |
83 { | 83 { |
84 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); | 84 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
231 size_t m_autoRepeatRows { 0 }; | 231 size_t m_autoRepeatRows { 0 }; |
232 | 232 |
233 bool m_hasAnyOrthogonalChild; | 233 bool m_hasAnyOrthogonalChild; |
234 }; | 234 }; |
235 | 235 |
236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
237 | 237 |
238 } // namespace blink | 238 } // namespace blink |
239 | 239 |
240 #endif // LayoutGrid_h | 240 #endif // LayoutGrid_h |
OLD | NEW |