Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 1895443002: [css-grid] Implement auto-repeat computation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated expectations Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; 149 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange;
150 LayoutUnit currentItemSizeForTrackSizeComputationPhase(TrackSizeComputationP hase, LayoutBox&, GridTrackSizingDirection, GridSizingData&); 150 LayoutUnit currentItemSizeForTrackSizeComputationPhase(TrackSizeComputationP hase, LayoutBox&, GridTrackSizingDirection, GridSizingData&);
151 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz ingDirection, const GridSpan&, LayoutBox& gridItem, GridTrack&, GridSizingData&) ; 151 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz ingDirection, const GridSpan&, LayoutBox& gridItem, GridTrack&, GridSizingData&) ;
152 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&); 152 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&);
153 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace); 153 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace);
154 154
155 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet; 155 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet;
156 double computeFlexFactorUnitSize(const Vector<GridTrack>&, GridTrackSizingDi rection, double flexFactorSum, LayoutUnit& leftOverSpace, const Vector<size_t, 8 >& flexibleTracksIndexes, PassOwnPtr<TrackIndexSet> tracksToTreatAsInflexible = nullptr) const; 156 double computeFlexFactorUnitSize(const Vector<GridTrack>&, GridTrackSizingDi rection, double flexFactorSum, LayoutUnit& leftOverSpace, const Vector<size_t, 8 >& flexibleTracksIndexes, PassOwnPtr<TrackIndexSet> tracksToTreatAsInflexible = nullptr) const;
157 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const; 157 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const;
158 158
159 const GridTrackSize& rawGridTrackSize(GridTrackSizingDirection, size_t) cons t;
Manuel Rego 2016/04/22 12:57:04 Nice name. :-)
159 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; 160 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const;
160 161
161 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&); 162 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&);
162 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&); 163 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&);
163 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&); 164 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&);
164 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); 165 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&);
165 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&); 166 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&);
166 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; 167 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const;
167 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; 168 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const;
168 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; 169 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 232
232 size_t m_autoRepeatColumns { 0 }; 233 size_t m_autoRepeatColumns { 0 };
233 size_t m_autoRepeatRows { 0 }; 234 size_t m_autoRepeatRows { 0 };
234 }; 235 };
235 236
236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 237 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
237 238
238 } // namespace blink 239 } // namespace blink
239 240
240 #endif // LayoutGrid_h 241 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698