Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 69e59e394c3ce971a86fbd51ba105a642af3e0e7
https://github.com/WebKit/WebKit/commit/69e59e394c3ce971a86fbd51ba105a642af3e0e7
Author: Yulun Wu <[email protected]>
Date: 2025-08-11 (Mon, 11 Aug 2025)
Changed paths:
M Source/WebCore/rendering/GridLayoutFunctions.cpp
M Source/WebCore/rendering/GridLayoutFunctions.h
M Source/WebCore/rendering/RenderGrid.cpp
M Source/WebCore/rendering/RenderGrid.h
Log Message:
-----------
[Refactor] Move Functions from RenderGrid to GridLayoutFunctions 2/n
https://bugs.webkit.org/show_bug.cgi?id=297135
<rdar://157871978>
Reviewed by Sammy Gill.
This PR refactors:
availableAlignmentSpaceForGridItemBeforeStretching()
updateAutoMarginsInRowAxisIfNeeded()
updateAutoMarginsInColumnAxisIfNeeded()
out of RenderGrid and into GridLayoutFunctions.
The purpose of this refactor is to clarify interactions between
the RenderGrid and individual items within RenderBox.
* Source/WebCore/rendering/GridLayoutFunctions.cpp:
(WebCore::GridLayoutFunctions::availableAlignmentSpaceForGridItemBeforeStretching):
(WebCore::GridLayoutFunctions::updateAutoMarginsIfNeeded):
(WebCore::GridLayoutFunctions::updateAutoMarginsInRowAxisIfNeeded):
(WebCore::GridLayoutFunctions::updateAutoMarginsInColumnAxisIfNeeded):
* Source/WebCore/rendering/GridLayoutFunctions.h:
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::layoutGridItems):
(WebCore::RenderGrid::layoutMasonryItems):
(WebCore::RenderGrid::applyStretchAlignmentToGridItemIfNeeded):
(WebCore::RenderGrid::applySubgridStretchAlignmentToGridItemIfNeeded):
(WebCore::RenderGrid::availableAlignmentSpaceForGridItemBeforeStretching
const): Deleted.
(WebCore::RenderGrid::updateAutoMarginsInRowAxisIfNeeded): Deleted.
(WebCore::RenderGrid::updateAutoMarginsInColumnAxisIfNeeded): Deleted.
* Source/WebCore/rendering/RenderGrid.h:
Canonical link: https://commits.webkit.org/298545@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes