mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibDevTools: Support inspecting DOM node box models and computed styles
This commit is contained in:
parent
3f8b65e45c
commit
afb0a0a394
Notes:
github-actions[bot]
2025-02-24 17:06:41 +00:00
Author: https://github.com/trflynn89
Commit: afb0a0a394
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3666
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 170 additions and 7 deletions
|
@ -72,6 +72,12 @@ void WalkerActor::handle_message(StringView type, JsonObject const& message)
|
|||
return;
|
||||
}
|
||||
|
||||
if (type == "getOffsetParent"sv) {
|
||||
response.set("node"sv, JsonValue {});
|
||||
send_message(move(response));
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == "querySelector"sv) {
|
||||
auto node = message.get_string("node"sv);
|
||||
if (!node.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue