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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); | 98 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); |
99 void offsetAndBreadthForPositionedChild(const RenderBox&, GridTrackSizingDir
ection, bool startIsAuto, bool endIsAuto, LayoutUnit& offset, LayoutUnit& breadt
h); | 99 void offsetAndBreadthForPositionedChild(const RenderBox&, GridTrackSizingDir
ection, bool startIsAuto, bool endIsAuto, LayoutUnit& offset, LayoutUnit& breadt
h); |
100 void populateGridPositions(const GridSizingData&, LayoutUnit availableSpaceF
orColumns, LayoutUnit availableSpaceForRows); | 100 void populateGridPositions(const GridSizingData&, LayoutUnit availableSpaceF
orColumns, LayoutUnit availableSpaceForRows); |
101 | 101 |
102 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin
gDirection, Vector<GridTrack>&); | 102 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin
gDirection, Vector<GridTrack>&); |
103 typedef const LayoutUnit& (GridTrack::* AccumulatorGetter)() const; | 103 typedef const LayoutUnit& (GridTrack::* AccumulatorGetter)() const; |
104 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 104 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
105 typedef bool (GridTrackSize::* FilterFunction)() const; | 105 typedef bool (GridTrackSize::* FilterFunction)() const; |
106 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz
ingDirection, const GridCoordinate&, RenderBox& gridItem, GridTrack&, Vector<Gri
dTrack>& columnTracks); | 106 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz
ingDirection, const GridCoordinate&, RenderBox& gridItem, GridTrack&, Vector<Gri
dTrack>& columnTracks); |
107 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio
n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat
orGetter, AccumulatorGrowFunction, FilterFunction growAboveMaxBreadthFilterFunct
ion = nullptr); | 107 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio
n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat
orGetter, AccumulatorGrowFunction, FilterFunction growAboveMaxBreadthFilterFunct
ion = nullptr); |
108 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<size_t>* tracksForG
rowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, GridSizingData
&, LayoutUnit& availableLogicalSpace); | 108 void distributeSpaceToTracks(Vector<GridTrack*>&, const Vector<GridTrack*>*
growBeyondGrowthLimitsTracks, AccumulatorGetter, AccumulatorGrowFunction, GridSi
zingData&, LayoutUnit& availableLogicalSpace); |
109 | 109 |
110 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; | 110 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; |
111 | 111 |
112 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; | 112 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; |
113 | 113 |
114 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); | 114 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); |
115 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 115 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
116 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 116 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
117 LayoutUnit startOfColumnForChild(const RenderBox& child) const; | 117 LayoutUnit startOfColumnForChild(const RenderBox& child) const; |
118 LayoutUnit endOfColumnForChild(const RenderBox& child) const; | 118 LayoutUnit endOfColumnForChild(const RenderBox& child) const; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 OrderIterator m_orderIterator; | 167 OrderIterator m_orderIterator; |
168 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 168 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
169 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 169 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
170 }; | 170 }; |
171 | 171 |
172 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 172 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
173 | 173 |
174 } // namespace blink | 174 } // namespace blink |
175 | 175 |
176 #endif // RenderGrid_h | 176 #endif // RenderGrid_h |
OLD | NEW |