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

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

Issue 815833005: [css-grid] Handle min-content/max-content with orthogonal flows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Utility functions for orthogonality. Created 5 years, 10 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 typedef const LayoutUnit& (GridTrack::* AccumulatorGetter)() const; 104 typedef const LayoutUnit& (GridTrack::* AccumulatorGetter)() const;
105 typedef bool (GridTrackSize::* FilterFunction)() const; 105 typedef bool (GridTrackSize::* FilterFunction)() const;
106 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz ingDirection, const GridCoordinate&, RenderBox& gridItem, GridTrack&, Vector<Gri dTrack>& columnTracks); 106 void resolveContentBasedTrackSizingFunctionsForNonSpanningItems(GridTrackSiz ingDirection, const GridCoordinate&, RenderBox& gridItem, GridTrack&, Vector<Gri dTrack>& columnTracks);
107 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat orGetter, AccumulatorGrowFunction, FilterFunction growAboveMaxBreadthFilterFunct ion = nullptr); 107 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio n, GridSizingData&, GridItemWithSpan&, FilterFunction, SizingFunction, Accumulat orGetter, AccumulatorGrowFunction, FilterFunction growAboveMaxBreadthFilterFunct ion = nullptr);
108 void distributeSpaceToTracks(Vector<GridTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, AccumulatorGetter, AccumulatorGrowFunction, GridSi zingData&, LayoutUnit& availableLogicalSpace); 108 void distributeSpaceToTracks(Vector<GridTrack*>&, const Vector<GridTrack*>* growBeyondGrowthLimitsTracks, AccumulatorGetter, AccumulatorGrowFunction, GridSi zingData&, LayoutUnit& availableLogicalSpace);
109 109
110 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan& tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; 110 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan& tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const;
111 111
112 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; 112 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const;
113 113
114 bool childOverflowingContainingBlockHeight(const RenderBox&) const;
115 bool childOverflowingContainingBlockWidth(const RenderBox&) const;
116 LayoutUnit overrideContainingBlockLogicalBreadthInlineDirection(const Render Box&) const;
117 void setOverrideContainingBlockLogicalBreadthInlineDirection(RenderBox&, Lay outUnit breadth);
118 LayoutUnit gridAreaBreadthForChildInlineDirection(const RenderBox&, Vector<G ridTrack>&) const;
114 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); 119 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&);
115 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks); 120 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>&);
116 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>& columnTracks); 121 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G ridTrack>&);
117 LayoutUnit startOfColumnForChild(const RenderBox& child) const; 122 LayoutUnit startOfColumnForChild(const RenderBox& child) const;
118 LayoutUnit endOfColumnForChild(const RenderBox& child) const; 123 LayoutUnit endOfColumnForChild(const RenderBox& child) const;
119 LayoutUnit columnPositionLeft(const RenderBox&) const; 124 LayoutUnit columnPositionLeft(const RenderBox&) const;
120 LayoutUnit columnPositionRight(const RenderBox&) const; 125 LayoutUnit columnPositionRight(const RenderBox&) const;
121 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const; 126 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const;
122 LayoutUnit columnPositionForChild(const RenderBox&) const; 127 LayoutUnit columnPositionForChild(const RenderBox&) const;
123 LayoutUnit startOfRowForChild(const RenderBox& child) const; 128 LayoutUnit startOfRowForChild(const RenderBox& child) const;
124 LayoutUnit endOfRowForChild(const RenderBox& child) const; 129 LayoutUnit endOfRowForChild(const RenderBox& child) const;
125 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; 130 LayoutUnit centeredRowPositionForChild(const RenderBox&) const;
126 LayoutUnit rowPositionForChild(const RenderBox&) const; 131 LayoutUnit rowPositionForChild(const RenderBox&) const;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 OrderIterator m_orderIterator; 174 OrderIterator m_orderIterator;
170 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 175 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
171 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 176 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
172 }; 177 };
173 178
174 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
175 180
176 } // namespace blink 181 } // namespace blink
177 182
178 #endif // RenderGrid_h 183 #endif // RenderGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698