1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

LibWeb+WebContent: Add inspect_dom_node() IPC call

This is the IPC version of `Document::set_inspected_node()`, using a
node ID.

We return the inspected node's style properties as JSON, so that the DOM
Inspector can immediately display them.
This commit is contained in:
Sam Atkins 2021-08-27 12:31:55 +01:00 committed by Andreas Kling
parent e824454ab4
commit f381f8d63e
5 changed files with 64 additions and 0 deletions

View file

@ -49,6 +49,7 @@ private:
virtual void debug_request(String const&, String const&) override;
virtual void get_source() override;
virtual void inspect_dom_tree() override;
virtual Messages::WebContentServer::InspectDomNodeResponse inspect_dom_node(i32) override;
virtual void js_console_initialize() override;
virtual void js_console_input(String const&) override;
virtual void run_javascript(String const&) override;