Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 728eb106c9041a94ca490f55ad68b744e3c854be
https://github.com/WebKit/WebKit/commit/728eb106c9041a94ca490f55ad68b744e3c854be
Author: Yulun Wu <[email protected]>
Date: 2026-07-29 (Wed, 29 Jul 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC] Extract the equal-distribution loop for track sizing space distribution
https://bugs.webkit.org/show_bug.cgi?id=320608
<rdar://183579852>
Reviewed by Sammy Gill.
Extract the space distribution loop out of distributeExtraSpaceToBaseSizes (CSS
Grid ยง12.5.1, #extra-space) into a standalone
distributeSpaceEquallyAmongTracks()
This will let us reuse this code in steps 2.3 and 2.4. This was extracted as a
standalone
instead of an inline lambda to keep the body of distributeExtraSpaceToBaseSizes
more compact
and readable.
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::distributeSpaceEquallyAmongTracks):
(WebCore::Layout::distributeExtraSpaceToBaseSizes):
Canonical link: https://commits.webkit.org/318218@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications