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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 LayoutUnit logicalHeightForChild(RenderBox*, Vector<GridTrack>&); | 107 LayoutUnit logicalHeightForChild(RenderBox*, Vector<GridTrack>&); |
108 LayoutUnit minContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 108 LayoutUnit minContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
109 LayoutUnit maxContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 109 LayoutUnit maxContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
110 LayoutUnit startOfColumnForChild(const RenderBox* child) const; | 110 LayoutUnit startOfColumnForChild(const RenderBox* child) const; |
111 LayoutUnit endOfColumnForChild(const RenderBox* child) const; | 111 LayoutUnit endOfColumnForChild(const RenderBox* child) const; |
112 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox*) con
st; | 112 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox*) con
st; |
113 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox*) const
; | 113 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox*) const
; |
114 LayoutUnit centeredColumnPositionForChild(const RenderBox*) const; | 114 LayoutUnit centeredColumnPositionForChild(const RenderBox*) const; |
115 LayoutUnit columnPositionForChild(const RenderBox*) const; | 115 LayoutUnit columnPositionForChild(const RenderBox*) const; |
| 116 LayoutUnit startOfRowForChild(const RenderBox* child) const; |
| 117 LayoutUnit endOfRowForChild(const RenderBox* child) const; |
| 118 LayoutUnit centeredRowPositionForChild(const RenderBox*) const; |
116 LayoutUnit rowPositionForChild(const RenderBox*) const; | 119 LayoutUnit rowPositionForChild(const RenderBox*) const; |
117 LayoutPoint findChildLogicalPosition(const RenderBox*) const; | 120 LayoutPoint findChildLogicalPosition(const RenderBox*) const; |
118 GridCoordinate cachedGridCoordinate(const RenderBox*) const; | 121 GridCoordinate cachedGridCoordinate(const RenderBox*) const; |
119 | 122 |
120 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 123 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
121 | 124 |
122 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; | 125 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; |
123 | 126 |
124 bool gridIsDirty() const { return m_gridIsDirty; } | 127 bool gridIsDirty() const { return m_gridIsDirty; } |
125 | 128 |
(...skipping 22 matching lines...) Expand all Loading... |
148 OrderIterator m_orderIterator; | 151 OrderIterator m_orderIterator; |
149 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 152 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
150 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 153 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
151 }; | 154 }; |
152 | 155 |
153 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 156 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
154 | 157 |
155 } // namespace WebCore | 158 } // namespace WebCore |
156 | 159 |
157 #endif // RenderGrid_h | 160 #endif // RenderGrid_h |
OLD | NEW |