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

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

  Log Message:
  -----------
  [GFC] Account for gutters when finding the space to distribute during track 
sizing.
https://bugs.webkit.org/show_bug.cgi?id=320940
<rdar://183969645>

Reviewed by Alan Baradlay.

This PR fixes a bug where gutter sizes are not subtracted from the item's size
contribution when computing the space to distribute during track sizing, which
would cause us to over-count the amount of space to distribute. Note that this
incorrect behavior is not see on trunk as spanning items are filtered out via
avoidance reasons.

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::distributeExtraSpace):
(WebCore::Layout::increaseSizesToAccommodateSpanningItemsCrossingFlexibleTracks):
(WebCore::Layout::ResolveIntrinsicTrackSizesContext::ResolveIntrinsicTrackSizesContext):
(WebCore::Layout::TrackSizingAlgorithm::sizeTracks):

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



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

Reply via email to