Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: edcf5f3c37433ab983ff1a3c48a5f509f3e9a86c
https://github.com/WebKit/WebKit/commit/edcf5f3c37433ab983ff1a3c48a5f509f3e9a86c
Author: Sammy Gill <[email protected]>
Date: 2026-04-24 (Fri, 24 Apr 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
M Source/WebCore/layout/formattingContexts/grid/GridTypeAliases.h
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.h
Log Message:
-----------
[GFC][Cleanup] Add a struct to aggregate data associated with a grid item for
track sizing
https://bugs.webkit.org/show_bug.cgi?id=313179
rdar://problem/175462000
Reviewed by Brent Fulgham.
We currently pass in many arguments into TrackSizingAlgorithm::sizeTracks.
These arguments are roughly divided into two categories:
1.) Pieces of data associated with the grid item to be used track sizing
2.) Constraints that come from grid layout and grid style
We can reduce the number of arguments significantly by packaging things
assocaited with 1 into a new struct called TrackSizingItem.
Additionally, AxisConstraint is really a wrapper for availableGridSpace,
freeSpaceScenario, and containerMinimumSize so we can instead just pass
it in directly.
Canonical link: https://commits.webkit.org/312009@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications