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

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

Issue 1451883002: [css-grid] Store lines instead of tracks in GridResolvedPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool explicitGridDidResize(const ComputedStyle&) const; 107 bool explicitGridDidResize(const ComputedStyle&) const;
108 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; 108 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
109 109
110 class GridIterator; 110 class GridIterator;
111 struct GridSizingData; 111 struct GridSizingData;
112 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& baseSizesWithoutMaximization, LayoutUnit& growthLimitsWithoutMaxi mization); 112 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& baseSizesWithoutMaximization, LayoutUnit& growthLimitsWithoutMaxi mization);
113 LayoutUnit computeUsedBreadthOfMinLength(const GridLength&, LayoutUnit maxBr eadth) const; 113 LayoutUnit computeUsedBreadthOfMinLength(const GridLength&, LayoutUnit maxBr eadth) const;
114 LayoutUnit computeUsedBreadthOfMaxLength(const GridLength&, LayoutUnit usedB readth, LayoutUnit maxBreadth) const; 114 LayoutUnit computeUsedBreadthOfMaxLength(const GridLength&, LayoutUnit usedB readth, LayoutUnit maxBreadth) const;
115 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&); 115 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&);
116 116
117 void ensureGridSize(size_t maximumRowIndex, size_t maximumColumnIndex); 117 void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize);
118 void insertItemIntoGrid(LayoutBox&, const GridCoordinate&); 118 void insertItemIntoGrid(LayoutBox&, const GridCoordinate&);
119 void placeItemsOnGrid(); 119 void placeItemsOnGrid();
120 void populateExplicitGridAndOrderIterator(); 120 void populateExplicitGridAndOrderIterator();
121 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri d(const LayoutBox&, GridTrackSizingDirection, const GridSpan& specifiedPositions ) const; 121 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri d(const LayoutBox&, GridTrackSizingDirection, const GridSpan& specifiedPositions ) const;
122 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); 122 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<LayoutBox*>&);
123 void placeAutoMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); 123 void placeAutoMajorAxisItemsOnGrid(const Vector<LayoutBox*>&);
124 void placeAutoMajorAxisItemOnGrid(LayoutBox&, std::pair<size_t, size_t>& aut oPlacementCursor); 124 void placeAutoMajorAxisItemOnGrid(LayoutBox&, std::pair<size_t, size_t>& aut oPlacementCursor);
125 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; 125 GridTrackSizingDirection autoPlacementMajorAxisDirection() const;
126 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; 126 GridTrackSizingDirection autoPlacementMinorAxisDirection() const;
127 127
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 LayoutUnit m_minContentHeight { -1 }; 213 LayoutUnit m_minContentHeight { -1 };
214 LayoutUnit m_maxContentHeight { -1 }; 214 LayoutUnit m_maxContentHeight { -1 };
215 }; 215 };
216 216
217 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 217 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
218 218
219 } // namespace blink 219 } // namespace blink
220 220
221 #endif // LayoutGrid_h 221 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698