mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibDevTools: Support highlighting DOM nodes hovered in the inspector
This commit is contained in:
parent
2386859e4b
commit
6e8d77ff7f
Notes:
github-actions[bot]
2025-02-24 17:07:00 +00:00
Author: https://github.com/trflynn89
Commit: 6e8d77ff7f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3666
Reviewed-by: https://github.com/AtkinsSJ
10 changed files with 116 additions and 9 deletions
|
@ -35,6 +35,14 @@ void FrameActor::handle_message(StringView type, JsonObject const&)
|
|||
JsonObject response;
|
||||
response.set("from"sv, name());
|
||||
|
||||
if (type == "detach"sv) {
|
||||
if (auto tab = m_tab.strong_ref())
|
||||
tab->reset_selected_node();
|
||||
|
||||
send_message(move(response));
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == "listFrames"sv) {
|
||||
send_message(move(response));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue