Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3fa15f4bde1da85913741e44234fd96b3204654d
      
https://github.com/WebKit/WebKit/commit/3fa15f4bde1da85913741e44234fd96b3204654d
  Author: Yulun Wu <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

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

  Log Message:
  -----------
  [GFC] Generalize distribute extra space to handle base sizes and growth limits
https://bugs.webkit.org/show_bug.cgi?id=320696
<rdar://183677981>

Reviewed by Sammy Gill.

Generalizes the intrinsic track-sizing space distribution to grow either
base sizes or growth limits based on ExtraSpaceDistributionTarget.

Updates UnsizedTrack to wrap the accessor logic for afectedSize()
freezeLimit() and adds the infinitelyGrowable flag. Note that we currently
only grow base sizes and do not yet handle growth limit changes.

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::UnsizedTrack::affectedSize const):
(WebCore::Layout::UnsizedTrack::freezeLimit const):
(WebCore::Layout::indexesForUnfrozenAffectedTracks):
(WebCore::Layout::distributeSpaceEquallyAmongTracks):
(WebCore::Layout::distributeExtraSpaceForTarget):
(WebCore::Layout::increaseSizesToAccommodateSpanningItemsCrossingFlexibleTracks):
(WebCore::Layout::distributeExtraSpaceToBaseSizes): Deleted.
(WebCore::Layout::distributeExtraSpace):

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



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

Reply via email to