Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4c799f966e9b51b984e346de2de590eb57c1eb51
https://github.com/WebKit/WebKit/commit/4c799f966e9b51b984e346de2de590eb57c1eb51
Author: Yulun Wu <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp
M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.h
M Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.cpp
M Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.h
Log Message:
-----------
[GFC] refactor PlacedGridItem::preferredAspectRatio into GridLayoutUtils.
https://bugs.webkit.org/show_bug.cgi?id=318731
<rdar://181534087>
Reviewed by Sammy Gill.
Refactor the logic for computing preferredAspectRatio()
to GridLayoutUtils() to make it reachable before construction
of PlacedGridItem().
* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp:
(WebCore::Layout::GridLayoutUtils::preferredAspectRatio):
(WebCore::Layout::GridLayoutUtils::inlineContentSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::blockContentSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::inlinePreferredSize):
(WebCore::Layout::GridLayoutUtils::hasStretchedBlockSize):
* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.h:
* Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.cpp:
(WebCore::Layout::PlacedGridItem::preferredAspectRatio const): Deleted.
* Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.h:
Canonical link: https://commits.webkit.org/316604@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications