We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc0552 commit 0edcd33Copy full SHA for 0edcd33
1 file changed
yoga/algorithm/grid/GridTrack.h
@@ -11,13 +11,17 @@
11
12
namespace facebook::yoga {
13
14
-// Represents a resolved grid track size during layout computation.
15
-// Includes variables used by the track sizing algorithm.
16
// https://www.w3.org/TR/css-grid-1/#algo-track-sizing
17
struct GridTrack {
18
- GridTrackSize trackSize;
+ // Sizing functions for this track, immutable after construction
+ const GridTrackSize trackSize;
+ // Mutable state used by the track sizing algorithm
19
+
20
+ // https://www.w3.org/TR/css-grid-1/#base-size
21
float baseSize = 0.0f;
22
+ // https://www.w3.org/TR/css-grid-1/#growth-limit
23
float growthLimit = 0.0f;
24
+ // https://www.w3.org/TR/css-grid-1/#infinitely-growable
25
bool infinitelyGrowable = false;
26
27
explicit GridTrack(const GridTrackSize& ts) : trackSize(ts) {}
0 commit comments