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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 LayoutUnit startOfRowForChild(const RenderBox& child) const; | 121 LayoutUnit startOfRowForChild(const RenderBox& child) const; |
122 LayoutUnit endOfRowForChild(const RenderBox& child) const; | 122 LayoutUnit endOfRowForChild(const RenderBox& child) const; |
123 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; | 123 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; |
124 LayoutUnit rowPositionForChild(const RenderBox&) const; | 124 LayoutUnit rowPositionForChild(const RenderBox&) const; |
125 LayoutPoint findChildLogicalPosition(const RenderBox&) const; | 125 LayoutPoint findChildLogicalPosition(const RenderBox&) const; |
126 GridCoordinate cachedGridCoordinate(const RenderBox&) const; | 126 GridCoordinate cachedGridCoordinate(const RenderBox&) const; |
127 | 127 |
128 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 128 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
129 | 129 |
130 virtual void paintChildren(PaintInfo&, const LayoutPoint&) override; | 130 virtual void paintChildren(PaintInfo&, const LayoutPoint&) override; |
| 131 bool needToStretchChildLogicalHeight(const RenderBox&) const; |
| 132 LayoutUnit childIntrinsicHeight(const RenderBox&) const; |
| 133 LayoutUnit childIntrinsicWidth(const RenderBox&) const; |
| 134 LayoutUnit intrinsicLogicalHeightForChild(const RenderBox&) const; |
| 135 LayoutUnit marginLogicalHeightForChild(const RenderBox&) const; |
| 136 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const RenderBox&) const; |
| 137 void applyStretchAlignmentToChildIfNeeded(RenderBox&, LayoutUnit gridAreaBre
adthForChild); |
131 | 138 |
132 #if ENABLE(ASSERT) | 139 #if ENABLE(ASSERT) |
133 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 140 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
134 #endif | 141 #endif |
135 | 142 |
136 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); | 143 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); |
137 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; | 144 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; |
138 | 145 |
139 size_t gridColumnCount() const | 146 size_t gridColumnCount() const |
140 { | 147 { |
(...skipping 15 matching lines...) Expand all Loading... |
156 OrderIterator m_orderIterator; | 163 OrderIterator m_orderIterator; |
157 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 164 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
158 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 165 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
159 }; | 166 }; |
160 | 167 |
161 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
162 | 169 |
163 } // namespace blink | 170 } // namespace blink |
164 | 171 |
165 #endif // RenderGrid_h | 172 #endif // RenderGrid_h |
OLD | NEW |