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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&); | 158 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&); |
159 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace); | 159 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace); |
160 | 160 |
161 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet; | 161 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet; |
162 double computeFlexFactorUnitSize(const Vector<GridTrack>&, GridTrackSizingDi rection, double flexFactorSum, LayoutUnit& leftOverSpace, const Vector<size_t, 8 >& flexibleTracksIndexes, std::unique_ptr<TrackIndexSet> tracksToTreatAsInflexib le = nullptr) const; | 162 double computeFlexFactorUnitSize(const Vector<GridTrack>&, GridTrackSizingDi rection, double flexFactorSum, LayoutUnit& leftOverSpace, const Vector<size_t, 8 >& flexibleTracksIndexes, std::unique_ptr<TrackIndexSet> tracksToTreatAsInflexib le = nullptr) const; |
163 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const; | 163 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const; |
164 | 164 |
165 const GridTrackSize& rawGridTrackSize(GridTrackSizingDirection, size_t) cons t; | 165 const GridTrackSize& rawGridTrackSize(GridTrackSizingDirection, size_t) cons t; |
166 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t, SizingOperatio n = TrackSizing) const; | 166 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t, SizingOperatio n = TrackSizing) const; |
167 | 167 |
168 bool childOverflowingContainingBlockWidth(const LayoutBox&) const; | |
169 bool childOverflowingContainingBlockHeight(const LayoutBox&) const; | |
svillar
2016/07/13 09:00:40
These two names suggest that the functions are ret
jfernandez
2016/07/14 09:29:15
Acknowledged.
| |
168 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&); | 170 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&); |
169 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&); | 171 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&); |
170 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&); | 172 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&); |
171 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); | 173 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); |
172 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); | 174 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); |
173 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; | 175 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; |
174 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; | 176 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; |
175 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; | 177 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; |
176 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ; | 178 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ; |
177 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const; | 179 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
231 size_t m_autoRepeatRows { 0 }; | 233 size_t m_autoRepeatRows { 0 }; |
232 | 234 |
233 bool m_hasAnyOrthogonalChild; | 235 bool m_hasAnyOrthogonalChild; |
234 }; | 236 }; |
235 | 237 |
236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 238 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
237 | 239 |
238 } // namespace blink | 240 } // namespace blink |
239 | 241 |
240 #endif // LayoutGrid_h | 242 #endif // LayoutGrid_h |
OLD | NEW |