Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 85af8f729098c4194644529c26b692d6e2cf72ae
https://github.com/WebKit/WebKit/commit/85af8f729098c4194644529c26b692d6e2cf72ae
Author: Sammy Gill <[email protected]>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridItemSizingFunctions.cpp
M Source/WebCore/layout/formattingContexts/grid/GridTypeAliases.h
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC][Cleanup] Remove redundant opposite axis constraints list
https://bugs.webkit.org/show_bug.cgi?id=318354
rdar://problem/181142446
Reviewed by Vitor Roriz.
The track sizing algorithm built a parallel list of every grid item's
opposite-axis constraint (by mapping the field off each TrackSizingItem) and
threaded it through the min-content / max-content / used-minimum-size helpers.
That constraint already lives on TrackSizingItem, which those helpers already
have, so read it from there directly and drop the redundant list, its builder
(oppositeAxisConstraintList), the ResolveIntrinsicTrackSizesContext member, and
the now-unused TrackSizingGridItemConstraintList alias.
Also rename the usedMinimumSize callback's opposite-axis parameter so that it is
clear what the "opposite axis," is. For example, the opposite axis
constraint for the inline axis sizing functions is the block axis
constraints.
Canonical link: https://commits.webkit.org/316321@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications