Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a393d6c9433905905c7ccec8b904376283d4c5fd
      
https://github.com/WebKit/WebKit/commit/a393d6c9433905905c7ccec8b904376283d4c5fd
  Author: Yulun Wu <[email protected]>
  Date:   2026-08-12 (Wed, 12 Aug 2026)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp

  Log Message:
  -----------
  [GFC] Update affectedTracksMatchingMinSizeFunction to handle all phases
https://bugs.webkit.org/show_bug.cgi?id=321574
<rdar://184683817>

Reviewed by Sammy Gill.

affectedTracksMatchingMinSizeFunction has been renamed to affectedTracks
and updated to support space distributions across tracks' intrinsic
maximums and max-content maximums, steps 5 and 6 of:

https://www.w3.org/TR/css-grid-1/#track-size-max-content-min

This refactor also updates:

MinTrackSizingFunctionType -> GridItemSizeContributionType

and adds ForIntrinsicMaximums and ForMaxContentMaximums
to the renamed enum class.

We have also renamed

isMinTrackSizingFunctionValidForType -> shouldTrackAccommodateContributionType
isMaxTrackSizingFunctionValidForPhase -> 
isTrackAffectedForSpaceDistributionInPhase

To better reflect the new track sizing steps we are supporting.

The affected track lists in steps 5 and 6 of:

https://www.w3.org/TR/css-grid-1/#track-size-max-content-min

Are created and temporarily marked as UNUSED_VARIABLE

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::isContributionAppliedToTrack):
(WebCore::Layout::isTrackAffectedInPhase):
(WebCore::Layout::affectedTracks):
(WebCore::Layout::resolveIntrinsicTrackSizesWithSpanningItems):
(WebCore::Layout::affectedTracksMatchingMinSizeFunction): Deleted.
(WebCore::Layout::isTrackAffectedForSpaceDistributionInPhase):
(WebCore::Layout::shouldTrackAccommodateContributionType):

Canonical link: https://commits.webkit.org/319056@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to