diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-08-27 12:47:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-02 22:16:41 +0200 |
commit | 3b07f49d48de28e9fade90e953343e19d16ffe41 (patch) | |
tree | 4b0943eee06f9845cd8ee42e8896dab908b570ca /Userland/Libraries/LibWeb/WebContentClient.cpp | |
parent | 1da07734bb046d6540831e73af87dac867afe308 (diff) | |
download | serenity-3b07f49d48de28e9fade90e953343e19d16ffe41.zip |
LibWeb+WebContent: Implement asynchronous DOM Node properties call
This lets us "push" a new style-properties list to the DOM Inspector,
for example when JS changes the style of the inspected node.
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/WebContentClient.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index 86d9acd0ea..90a43e9dbe 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -136,11 +136,16 @@ void WebContentClient::did_get_source(URL const& url, String const& source) m_view.notify_server_did_get_source(url, source); } -void WebContentClient::did_get_dom_tree(const String& dom_tree) +void WebContentClient::did_get_dom_tree(String const& dom_tree) { m_view.notify_server_did_get_dom_tree(dom_tree); } +void WebContentClient::did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style) +{ + m_view.notify_server_did_get_dom_node_properties(node_id, specified_style, computed_style); +} + void WebContentClient::did_js_console_output(String const& method, String const& line) { m_view.notify_server_did_js_console_output(method, line); |