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

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

Issue 2030803003: [css-grid] Get rid of AvailableSpaceType enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride; 112 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride;
113 void removeChild(LayoutObject*) override; 113 void removeChild(LayoutObject*) override;
114 114
115 void styleDidChange(StyleDifference, const ComputedStyle*) override; 115 void styleDidChange(StyleDifference, const ComputedStyle*) override;
116 116
117 bool explicitGridDidResize(const ComputedStyle&) const; 117 bool explicitGridDidResize(const ComputedStyle&) const;
118 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; 118 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
119 119
120 class GridIterator; 120 class GridIterator;
121 struct GridSizingData; 121 struct GridSizingData;
122 enum AvailableSpaceType {AvailableSpaceDefinite, AvailableSpaceIndefinite}; 122 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& baseSizesWithoutMaximization, LayoutUnit& growthLimitsWithoutMaxi mization);
123 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& baseSizesWithoutMaximization, LayoutUnit& growthLimitsWithoutMaxi mization, AvailableSpaceType);
124 LayoutUnit computeUsedBreadthOfMinLength(const GridLength&, LayoutUnit maxBr eadth) const; 123 LayoutUnit computeUsedBreadthOfMinLength(const GridLength&, LayoutUnit maxBr eadth) const;
125 LayoutUnit computeUsedBreadthOfMaxLength(const GridLength&, LayoutUnit usedB readth, LayoutUnit maxBreadth) const; 124 LayoutUnit computeUsedBreadthOfMaxLength(const GridLength&, LayoutUnit usedB readth, LayoutUnit maxBreadth) const;
126 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&); 125 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&);
127 126
128 void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize); 127 void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize);
129 void insertItemIntoGrid(LayoutBox&, const GridArea&); 128 void insertItemIntoGrid(LayoutBox&, const GridArea&);
130 129
131 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection) const; 130 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection) const;
132 131
133 void placeItemsOnGrid(); 132 void placeItemsOnGrid();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 226
228 size_t m_autoRepeatColumns { 0 }; 227 size_t m_autoRepeatColumns { 0 };
229 size_t m_autoRepeatRows { 0 }; 228 size_t m_autoRepeatRows { 0 };
230 }; 229 };
231 230
232 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 231 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
233 232
234 } // namespace blink 233 } // namespace blink
235 234
236 #endif // LayoutGrid_h 235 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698