Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ae36a4d0c1531f1fe654e9e5f95d74183acd8893
https://github.com/WebKit/WebKit/commit/ae36a4d0c1531f1fe654e9e5f95d74183acd8893
Author: Yulun Wu <[email protected]>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC] Finish resolveIntrinsicTrackSizesWithSpanningItems()
https://bugs.webkit.org/show_bug.cgi?id=322858
<rdar://186100312>
Reviewed by Sammy Gill.
This PR implements items 4-6 of
https://drafts.csswg.org/css-grid-1/#algo-spanning-items
Item 5 marks the tracks whose growth limit changed from infinite to finite in
that item. This is
done by updating distributeExtraSpace() to return the trackIndexes whose growth
limit is changed when
distributing extra space.
A RAII helper temporarily marks those tracks as infinitelyGrowable until it
goes out of scope after finishing item 6.
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::UnsizedTrack):
(WebCore::Layout::distributeExtraSpace):
(WebCore::Layout::ScopedInfinitelyGrowableTracks::ScopedInfinitelyGrowableTracks):
(WebCore::Layout::ScopedInfinitelyGrowableTracks::~ScopedInfinitelyGrowableTracks):
(WebCore::Layout::resolveIntrinsicTrackSizesWithSpanningItems):
Canonical link: https://commits.webkit.org/320854@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications