Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 76c91a3029dd67d152df2ec46d83fb52bbf90bd8
https://github.com/WebKit/WebKit/commit/76c91a3029dd67d152df2ec46d83fb52bbf90bd8
Author: Yulun Wu <[email protected]>
Date: 2025-10-03 (Fri, 03 Oct 2025)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
M Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.cpp
M Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.h
M Source/WebCore/layout/formattingContexts/grid/UnplacedGridItem.cpp
Log Message:
-----------
[GFC] Position items locked to a given row.
https://bugs.webkit.org/show_bug.cgi?id=299858
<rdar://161626344>
Reviewed by Sammy Gill.
This implements step 2 of the CSS Grid auto-placement algorithm for
items that have definite row positions but auto column positions.
The implementation supports both dense and sparse packing strategies
as specified by the grid-auto-flow CSS property.
Combined changes:
* Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.cpp:
(WebCore::Layout::ImplicitGrid::insertDefiniteRowItem):
(WebCore::Layout::ImplicitGrid::findFirstAvailableColumnPosition const):
(WebCore::Layout::ImplicitGrid::isAreaEmpty const):
(WebCore::Layout::ImplicitGrid::insertItemAtPosition):
(WebCore::Layout::ImplicitGrid::ensureRowCursorsSize):
(WebCore::Layout::ImplicitGrid::getRowCursor const):
(WebCore::Layout::ImplicitGrid::updateRowCursor):
* Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.h:
Canonical link: https://commits.webkit.org/300930@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