[webkit-changes] [WebKit/WebKit] 381645: [masonry] Expose grid items positions and sizes to...
Brandon Stewart
noreply at github.com
Fri Jan 19 12:03:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3816458b86b6fc9a5c62f8dc1d3e96b5498ec554
https://github.com/WebKit/WebKit/commit/3816458b86b6fc9a5c62f8dc1d3e96b5498ec554
Author: Brandon Stewart <brandonstewart at apple.com>
Date: 2024-01-19 (Fri, 19 Jan 2024)
Changed paths:
M Source/WebCore/rendering/RenderGrid.cpp
M Source/WebCore/rendering/RenderGrid.h
Log Message:
-----------
[masonry] Expose grid items positions and sizes to Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=267736
rdar://problem/121219933
Reviewed by Sammy Gill.
Masonry differs from Grid in only having one axis. This does not allow simple drawing
straight lines. The Web Inspector can instead draw boxes around each item, which this patch
is exposing in a simpler format.
This patch is not exclusive to masonry and can be used for all returning all grid items
layout rects.
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::gridItemsLayoutRects):
* Source/WebCore/rendering/RenderGrid.h:
Canonical link: https://commits.webkit.org/273232@main
More information about the webkit-changes
mailing list