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

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 582733003: [CSSGridLayout] Pass the valid tracks for |tracksForGrowAboveMaxBreadth| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fixes Created 6 years, 2 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; 95 GridTrackSizingDirection autoPlacementMajorAxisDirection() const;
96 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; 96 GridTrackSizingDirection autoPlacementMinorAxisDirection() const;
97 97
98 void layoutGridItems(); 98 void layoutGridItems();
99 void populateGridPositions(const GridSizingData&); 99 void populateGridPositions(const GridSizingData&);
100 100
101 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin gDirection, Vector<GridTrack>&); 101 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin gDirection, Vector<GridTrack>&);
102 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; 102 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const;
103 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); 103 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit);
104 typedef bool (GridTrackSize::* FilterFunction)() const; 104 typedef bool (GridTrackSize::* FilterFunction)() const;
105 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat orGetter, AccumulatorGrowFunction); 105 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat orGetter, AccumulatorGrowFunction, FilterFunction growAboveMaxBreadthFilterFunct ion = nullptr);
106 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, GridSizing Data&, LayoutUnit& availableLogicalSpace); 106 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<size_t>* tracksForG rowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, GridSizingData &, LayoutUnit& availableLogicalSpace);
107 107
108 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan& tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; 108 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan& tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const;
109 109
110 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; 110 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const;
111 111
112 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); 112 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&);
113 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks); 113 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks);
114 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks); 114 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks);
115 LayoutUnit startOfColumnForChild(const RenderBox& child) const; 115 LayoutUnit startOfColumnForChild(const RenderBox& child) const;
116 LayoutUnit endOfColumnForChild(const RenderBox& child) const; 116 LayoutUnit endOfColumnForChild(const RenderBox& child) const;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 OrderIterator m_orderIterator; 156 OrderIterator m_orderIterator;
157 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 157 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
158 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 158 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
159 }; 159 };
160 160
161 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 161 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // RenderGrid_h 165 #endif // RenderGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698