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

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: Applied additional changes. Created 4 years, 5 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&) const; 159 template <TrackSizeComputationPhase> void resolveContentBasedTrackSizingFunc tionsForItems(GridTrackSizingDirection, GridSizingData&, const GridItemsSpanGrou pRange&) const;
160 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace) const; 160 template <TrackSizeComputationPhase> void distributeSpaceToTracks(Vector<Gri dTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, GridSizingDat a&, LayoutUnit& availableLogicalSpace) const;
161 161
162 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet; 162 typedef HashSet<size_t, DefaultHash<size_t>::Hash, WTF::UnsignedWithZeroKeyH ashTraits<size_t>> TrackIndexSet;
163 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 computeFlexFactorUnitSize(const Vector<GridTrack>&, GridTrackSizingDi rection, double flexFactorSum, LayoutUnit& leftOverSpace, const Vector<size_t, 8 >& flexibleTracksIndexes, std::unique_ptr<TrackIndexSet> tracksToTreatAsInflexib le = nullptr) const;
164 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const; 164 double findFlexFactorUnitSize(const Vector<GridTrack>&, const GridSpan&, Gri dTrackSizingDirection, LayoutUnit leftOverSpace) const;
165 165
166 const GridTrackSize& rawGridTrackSize(GridTrackSizingDirection, size_t) cons t; 166 const GridTrackSize& rawGridTrackSize(GridTrackSizingDirection, size_t) cons t;
167 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t, SizingOperatio n = TrackSizing) const; 167 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t, SizingOperatio n = TrackSizing) const;
168 168
169 bool isChildOverflowingContainingBlockWidth(const LayoutBox&) const;
170 bool isChildOverflowingContainingBlockHeight(const LayoutBox&) const;
169 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&) const; 171 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS izingDirection, GridSizingData&) const;
170 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&) const; 172 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&) const;
171 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&) const; 173 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD ata&) const;
172 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&) const; 174 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&) const;
173 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&) const; 175 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi ngData&) const;
174 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; 176 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const;
175 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; 177 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const;
176 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; 178 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const;
177 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ; 179 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ;
178 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const; 180 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 240
239 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr };
240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; 242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr };
241 }; 243 };
242 244
243 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 245 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
244 246
245 } // namespace blink 247 } // namespace blink
246 248
247 #endif // LayoutGrid_h 249 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698