Bug 267736
| Summary: | [masonry] Expose grid items positions and sizes to Web Inspector | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brandon <brandonstewart> |
| Component: | Web Inspector | Assignee: | Brandon <brandonstewart> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes, rcaliman, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=265382 | ||
Brandon
Expose grid items positions and sizes to Web Inspector
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/121219933>
Brandon
Pull request: https://github.com/WebKit/WebKit/pull/22941
Razvan Caliman
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
Committed 273232@main (3816458b86b6): <https://commits.webkit.org/273232@main>
Reviewed commits have been landed. Closing PR #22941 and removing active labels.