Commit graph

4 commits

Author SHA1 Message Date
Sam Atkins
fb96cdd7a1 DevTools: Include subframe grids in layout inspection
Firefox's grid inspector builds its subgrid tree from two protocol
signals: isSubgrid on each GridActor form, and
Walker.getParentGridNode() for each subgrid container. Teach the walker
to answer the parent grid lookup so Firefox can attach subgrids below
their parent grid in the Layout panel.
2026-05-27 17:47:50 +01:00
Sam Atkins
ad541dca7f DevTools: Support the CSS grid highlighter
Create typed highlighter actors for Firefox's highlighter requests.
The actor keeps the requested type so CssGridHighlighter can use grid
highlighting while the other highlighter types keep the existing box
model-compatible behavior.
2026-05-27 17:47:50 +01:00
Sam Atkins
5c551ac6aa DevTools: Implement Firefox grid layout actors
Teach the walker to vend a layout inspector actor and serialize node
display types.

The layout inspector now returns Firefox-compatible grid actor forms
for getGrids and getCurrentGrid. It also supports Firefox's fallback
walker.getNodeFromActor(grid, ["containerEl"]) path, which the grid
panel uses when a grid form does not already contain a container node
actor ID.
2026-05-27 17:47:50 +01:00
Sam Atkins
c985f9cad5 Tests: Add a LibDevTools test suite
Use a fake delegate to cover root, target, inspector, styles, network,
navigation, and accessibility behavior. This is not in-depth, but should
be enough to catch regressions.
2026-05-27 08:55:02 +01:00