LibDevTools: Support inspecting DOM node box models and computed styles

This commit is contained in:
Timothy Flynn 2025-02-21 16:20:53 -05:00 committed by Tim Flynn
commit afb0a0a394
Notes: github-actions[bot] 2025-02-24 17:06:41 +00:00
6 changed files with 170 additions and 7 deletions

View file

@ -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()) {