mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 07:18:51 +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
Notes:
sideshowbarker
2024-07-18 04:51:50 +09:00
Author: https://github.com/AtkinsSJ
Commit: 3b07f49d48
Pull-request: https://github.com/SerenityOS/serenity/pull/9725
Issue: https://github.com/SerenityOS/serenity/issues/8935
Reviewed-by: https://github.com/awesomekling
7 changed files with 20 additions and 1 deletions
|
@ -341,6 +341,12 @@ void OutOfProcessWebView::notify_server_did_get_dom_tree(const String& dom_tree)
|
|||
on_get_dom_tree(dom_tree);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style)
|
||||
{
|
||||
if (on_get_dom_node_properties)
|
||||
on_get_dom_node_properties(node_id, specified_style, computed_style);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_js_console_output(const String& method, const String& line)
|
||||
{
|
||||
if (on_js_console_output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue