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