RESOLVED FIXED267736
[masonry] Expose grid items positions and sizes to Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=267736
Summary [masonry] Expose grid items positions and sizes to Web Inspector
Brandon
Reported 2024-01-18 15:07:29 PST
Expose grid items positions and sizes to Web Inspector
Attachments
Radar WebKit Bug Importer
Comment 1 2024-01-18 15:07:54 PST
Brandon
Comment 2 2024-01-18 15:12:12 PST
Razvan Caliman
Comment 3 2024-01-19 11:12:22 PST
Copying this over from the PR comments so it won't get lost: > Simple way to grab data on the Inspector Overlay side: ``` auto items = renderGrid.gridItemsLayoutRects(); for (auto &item : items) { std::cout << "x " << item.x().rawValue() << std::endl; std::cout << "y " << item.y().rawValue() << std::endl; std::cout << "width " << item.width().rawValue() << std::endl; std::cout << "height " << item.height().rawValue() << std::endl; std::cout << std::endl; } ```
EWS
Comment 4 2024-01-19 12:03:07 PST
Committed 273232@main (3816458b86b6): <https://commits.webkit.org/273232@main> Reviewed commits have been landed. Closing PR #22941 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.