Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 90e5dba04b2e976ef4a238415c4b34472324e12a
https://github.com/WebKit/WebKit/commit/90e5dba04b2e976ef4a238415c4b34472324e12a
Author: Yulun Wu <[email protected]>
Date: 2026-02-06 (Fri, 06 Feb 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/FreeSpaceScenario.h
M Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.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/integration/grid/LayoutIntegrationGridLayout.cpp
Log Message:
-----------
[GFC] Introduce AxisConstraint for grid layout constraints
https://bugs.webkit.org/show_bug.cgi?id=307177
<rdar://169813212>
Reviewed by Sammy Gill.
Replace weak optional-based GridLayoutConstraints with a strong type that
makes illegal constraint states unrepresentable at compile time.
Also rename FreeSpaceScenario::Indefinite to MaxContent for clarity, as it
represents infinite available space where flex tracks size from max-content.
* Source/WebCore/layout/formattingContexts/grid/FreeSpaceScenario.h:
* Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.cpp:
(WebCore::Layout::GridFormattingContext::layout):
* Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.h:
(WebCore::Layout::AxisConstraint::minContent):
(WebCore::Layout::AxisConstraint::maxContent):
(WebCore::Layout::AxisConstraint::definite):
(WebCore::Layout::AxisConstraint::scenario const):
(WebCore::Layout::AxisConstraint::availableSpace const):
(WebCore::Layout::AxisConstraint::containerMinimumSize const):
(WebCore::Layout::AxisConstraint::containerMaximumSize const):
(WebCore::Layout::AxisConstraint::AxisConstraint):
* 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::TrackSizingAlgorithm::sizeTracks):
* Source/WebCore/layout/integration/grid/LayoutIntegrationGridLayout.cpp:
(WebCore::LayoutIntegration::constraintsForGridContent):
Canonical link: https://commits.webkit.org/306994@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications