Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7e125e789b46fa178bf3f15cd89cd1ad52670cb7
      
https://github.com/WebKit/WebKit/commit/7e125e789b46fa178bf3f15cd89cd1ad52670cb7
  Author: Yulun Wu <[email protected]>
  Date:   2026-01-31 (Sat, 31 Jan 2026)

  Changed paths:
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/layout/formattingContexts/grid/FreeSpaceScenario.h
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.h
    M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
    M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.h

  Log Message:
  -----------
  [GFC] Expand flex tracks for grids with definite free space
https://bugs.webkit.org/show_bug.cgi?id=306121
<rdar://168767170>

Reviewed by NOBODY (OOPS\!).

This PR finishes implementing flex track expansion for grid containers
with definite free space as well as setting the flex fraction to zero
for grid containers under a min-content constraint.

This covers scenarios 1 and 2 of:

https://www.w3.org/TR/css-grid-1/#algo-flex-tracks

This PR also introduces a FreeSpaceScenario enum to track
whether free space is min-content, definite, or indefinite to
determine how flex factors are resolved.

Scenario 3 depends on intrinsic sizing support and will be
added in a follow up PR.

* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/layout/formattingContexts/grid/FreeSpaceScenario.h: Added.
* Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp:
(WebCore::Layout::GridLayout::layout):
(WebCore::Layout::GridLayout::performGridSizingAlgorithm const):
* Source/WebCore/layout/formattingContexts/grid/GridLayout.h:
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::computeHypotheticalFrSize):
(WebCore::Layout::TrackSizingAlgorithm::sizeTracks):
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.h:

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



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

Reply via email to