Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 98a5bbe21fd107e71f4cffbafd8eadc6ae55a51f
https://github.com/WebKit/WebKit/commit/98a5bbe21fd107e71f4cffbafd8eadc6ae55a51f
Author: Yulun Wu <[email protected]>
Date: 2026-08-11 (Tue, 11 Aug 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC] Parameterize resolveIntrinsicTrackSizesWithSpanningItems() by intrinsic
sizing phase
https://bugs.webkit.org/show_bug.cgi?id=321474
<rdar://184566237>
Reviewed by Sammy Gill.
We should parameterize resolveIntrinsicTrackSizesWithSpanningItems()
and all the helper functions it uses instead of splitting it into two
pieces for flex and content sized tracks.
This PR removes affectedFlexibleTracksMatchingMinSizeFunction and replaces with
affectedTracksMatchingMinSizeFunction which takes the
ResolveIntrinsicTrackSizesPhase
as a parameter, allowing it to support flex and content sized tracks.
A helper function itemsToAccommodate() was added to collect the items that we
need to
size the grid tracks for during a given phase, which currently only wraps
itemsSpanningFlexibleTracks and does not yet support the content sizing phases.
No behavior change
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::itemsToAccommodate):
(WebCore::Layout::affectedTracksMatchingMinSizeFunction):
(WebCore::Layout::resolveIntrinsicTrackSizesWithSpanningItems):
(WebCore::Layout::affectedFlexibleTracksMatchingMinSizeFunction): Deleted.
(WebCore::Layout::increaseSizesToAccommodateSpanningItemsCrossingContentSizedTracks):
Deleted.
(WebCore::Layout::increaseSizesToAccommodateSpanningItemsCrossingFlexibleTracks):
Deleted.
Canonical link: https://commits.webkit.org/318977@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications