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

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

Issue 2670363003: [css-grid] Clamp the number of auto repeat tracks in all cases (Closed)
Patch Set: New version matching the specs Created 3 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 LayoutObject* beforeChild = nullptr) override; 113 LayoutObject* beforeChild = nullptr) override;
114 void removeChild(LayoutObject*) override; 114 void removeChild(LayoutObject*) override;
115 115
116 void styleDidChange(StyleDifference, const ComputedStyle*) override; 116 void styleDidChange(StyleDifference, const ComputedStyle*) override;
117 117
118 bool explicitGridDidResize(const ComputedStyle&) const; 118 bool explicitGridDidResize(const ComputedStyle&) const;
119 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; 119 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
120 120
121 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection, 121 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection,
122 SizingOperation) const; 122 SizingOperation) const;
123 size_t clampAutoRepeatTracks(GridTrackSizingDirection,
124 size_t autoRepeatTracks) const;
123 125
124 std::unique_ptr<OrderedTrackIndexSet> computeEmptyTracksForAutoRepeat( 126 std::unique_ptr<OrderedTrackIndexSet> computeEmptyTracksForAutoRepeat(
125 Grid&, 127 Grid&,
126 GridTrackSizingDirection) const; 128 GridTrackSizingDirection) const;
127 129
128 void placeItemsOnGrid(Grid&, SizingOperation) const; 130 void placeItemsOnGrid(Grid&, SizingOperation) const;
129 void populateExplicitGridAndOrderIterator(Grid&) const; 131 void populateExplicitGridAndOrderIterator(Grid&) const;
130 std::unique_ptr<GridArea> createEmptyGridAreaAtSpecifiedPositionsOutsideGrid( 132 std::unique_ptr<GridArea> createEmptyGridAreaAtSpecifiedPositionsOutsideGrid(
131 const Grid&, 133 const Grid&,
132 const LayoutBox&, 134 const LayoutBox&,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 LayoutUnit m_maxContentHeight{-1}; 249 LayoutUnit m_maxContentHeight{-1};
248 250
249 Optional<bool> m_hasDefiniteLogicalHeight; 251 Optional<bool> m_hasDefiniteLogicalHeight;
250 }; 252 };
251 253
252 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 254 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
253 255
254 } // namespace blink 256 } // namespace blink
255 257
256 #endif // LayoutGrid_h 258 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/Grid.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