mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -36,7 +36,7 @@ void InspectorActor::handle_message(StringView type, JsonObject const& message)
|
|||
|
||||
if (type == "getPageStyle"sv) {
|
||||
if (!m_page_style)
|
||||
m_page_style = devtools().register_actor<PageStyleActor>();
|
||||
m_page_style = devtools().register_actor<PageStyleActor>(*this);
|
||||
|
||||
response.set("pageStyle"sv, m_page_style->serialize_style());
|
||||
send_message(move(response));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue