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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri
d(const LayoutBox&, GridTrackSizingDirection, const GridSpan& specifiedPositions
) const; | 119 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri
d(const LayoutBox&, GridTrackSizingDirection, const GridSpan& specifiedPositions
) const; |
120 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); | 120 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); |
121 void placeAutoMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); | 121 void placeAutoMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); |
122 void placeAutoMajorAxisItemOnGrid(LayoutBox&, std::pair<size_t, size_t>& aut
oPlacementCursor); | 122 void placeAutoMajorAxisItemOnGrid(LayoutBox&, std::pair<size_t, size_t>& aut
oPlacementCursor); |
123 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; | 123 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; |
124 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; | 124 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; |
125 | 125 |
126 void layoutGridItems(); | 126 void layoutGridItems(); |
127 void prepareChildForPositionedLayout(LayoutBox&); | 127 void prepareChildForPositionedLayout(LayoutBox&); |
128 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); | 128 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); |
129 void offsetAndBreadthForPositionedChild(const LayoutBox&, GridTrackSizingDir
ection, bool startIsAuto, bool endIsAuto, LayoutUnit& offset, LayoutUnit& breadt
h); | 129 void offsetAndBreadthForPositionedChild(const LayoutBox&, GridTrackSizingDir
ection, LayoutUnit& offset, LayoutUnit& breadth); |
130 void populateGridPositions(GridSizingData&, LayoutUnit availableSpaceForColu
mns, LayoutUnit availableSpaceForRows); | 130 void populateGridPositions(GridSizingData&, LayoutUnit availableSpaceForColu
mns, LayoutUnit availableSpaceForRows); |
131 | 131 |
132 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; | 132 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; |
133 LayoutUnit currentItemSizeForTrackSizeComputationPhase(TrackSizeComputationP
hase, LayoutBox&, GridTrackSizingDirection, Vector<GridTrack>& columnTracks); | 133 LayoutUnit currentItemSizeForTrackSizeComputationPhase(TrackSizeComputationP
hase, LayoutBox&, GridTrackSizingDirection, Vector<GridTrack>& columnTracks); |
134 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz
ingDirection, const GridCoordinate&, LayoutBox& gridItem, GridTrack&, Vector<Gri
dTrack>& columnTracks); | 134 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz
ingDirection, const GridCoordinate&, LayoutBox& gridItem, GridTrack&, Vector<Gri
dTrack>& columnTracks); |
135 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc
tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou
pRange&); | 135 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc
tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou
pRange&); |
136 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri
dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat
a&, LayoutUnit& availableLogicalSpace); | 136 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri
dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat
a&, LayoutUnit& availableLogicalSpace); |
137 | 137 |
138 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; | 138 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; |
139 | 139 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 OrderIterator m_orderIterator; | 196 OrderIterator m_orderIterator; |
197 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 197 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
198 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 198 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
199 }; | 199 }; |
200 | 200 |
201 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 201 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
202 | 202 |
203 } // namespace blink | 203 } // namespace blink |
204 | 204 |
205 #endif // LayoutGrid_h | 205 #endif // LayoutGrid_h |
OLD | NEW |