mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:35:07 +00:00
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.
This commit is contained in:
parent
1da07734bb
commit
3b07f49d48
7 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue