Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a19aae0c7f91d4181f4b75e6278a54233df0f7b8
https://github.com/WebKit/WebKit/commit/a19aae0c7f91d4181f4b75e6278a54233df0f7b8
Author: Yulun Wu <[email protected]>
Date: 2026-08-25 (Tue, 25 Aug 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC] Implement step 2.4 of Distributing Extra Space
https://bugs.webkit.org/show_bug.cgi?id=321799
<rdar://184933769>
Reviewed by Sammy Gill.
This PR implements Step 2.4 of https://drafts.csswg.org/css-grid-1/#extra-space
tracksToGrowBeyondGrowthLimits() collects the tracks the item spans that should
be unfrozen
and grown beyond its limits. shouldTrackGrowBeyondGrowthLimits() checks whether
the track's
max sizing function is of the type that should be unfrozen in a given phase,
asserting that
the correct ExtraSpaceDistributionTarget is passed in and matching spec.
GridItemSizeContributionType has been renamed to AffectedTrackSizingFunction to
better
reflect the usage of the enum.
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::shouldTrackGrowBeyondGrowthLimits):
(WebCore::Layout::tracksToGrowBeyondGrowthLimits):
(WebCore::Layout::distributeExtraSpace):
(WebCore::Layout::resolveIntrinsicTrackSizesWithSpanningItems):
(WebCore::Layout::hasAffectedTrackSizingFunction):
(WebCore::Layout::affectedTracks):
(WebCore::Layout::shouldTrackAccommodateContributionType): Deleted.
Canonical link: https://commits.webkit.org/319837@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications