Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f0e01b8b506e4eff2531d02c884cc9b666e29f34
https://github.com/WebKit/WebKit/commit/f0e01b8b506e4eff2531d02c884cc9b666e29f34
Author: Yulun Wu <[email protected]>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp
M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.h
Log Message:
-----------
[GFC] Compute a grid item's block size against its grid area's inline size
https://bugs.webkit.org/show_bug.cgi?id=325043
rdar://188220286
Reviewed by Sammy Gill.
We should use gridAreaInlineSize instead of inlineUsedSize to compute a grid
item's block size,
as we should pass in the item's containing block width, not the item's width.
Also rename the parameters to gridAreaInlineSize and gridAreaBlockSize.
No behavior change.
* Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp:
(WebCore::Layout::GridLayout::layoutGridItems const):
* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp:
(WebCore::Layout::GridLayoutUtils::inlineUsedSize):
(WebCore::Layout::GridLayoutUtils::blockUsedSize):
* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.h:
Canonical link: https://commits.webkit.org/321732@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications