Skip to content

Commit d5c2977

Browse files
make track size const and improve comments
1 parent 0dc0552 commit d5c2977

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

yoga/algorithm/grid/GridTrack.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace facebook::yoga {
1313

14-
// Represents a resolved grid track size during layout computation.
15-
// Includes variables used by the track sizing algorithm.
1614
// https://www.w3.org/TR/css-grid-1/#algo-track-sizing
1715
struct GridTrack {
18-
GridTrackSize trackSize;
16+
// Sizing functions for this track, immutable after construction
17+
const GridTrackSize trackSize;
18+
// Mutable state used by the track sizing algorithm
1919
float baseSize = 0.0f;
2020
float growthLimit = 0.0f;
2121
bool infinitelyGrowable = false;

0 commit comments

Comments
 (0)