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

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

Issue 842193004: [css-grid] Handle alignment with orthogonal flows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@orthogonal-flows
Patch Set: Patch rebased. Created 4 years, 6 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698