1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

LibWeb+WebContent: Add query for hovered DOM node to OOPWV

This is needed for the "Inspect Element" context menu action.
This commit is contained in:
Sam Atkins 2021-08-27 17:33:10 +01:00 committed by Andreas Kling
parent 3b07f49d48
commit 1ccf10789e
5 changed files with 18 additions and 0 deletions

View file

@ -28,6 +28,7 @@ endpoint WebContentServer
get_source() =|
inspect_dom_tree() =|
inspect_dom_node(i32 node_id) => (bool has_style, String specified_style, String computed_style)
get_hovered_node_id() => (i32 node_id)
js_console_initialize() =|
js_console_input(String js_source) =|