LibDevTools+LibWebView: Implement getting document style sheets

This commit is contained in:
Timothy Flynn 2025-03-11 17:14:54 -04:00 committed by Tim Flynn
commit 0b86bcfba7
Notes: github-actions[bot] 2025-03-13 20:57:24 +00:00
10 changed files with 274 additions and 6 deletions

View file

@ -11,6 +11,7 @@
#include <LibDevTools/Actors/ConsoleActor.h>
#include <LibDevTools/Actors/FrameActor.h>
#include <LibDevTools/Actors/InspectorActor.h>
#include <LibDevTools/Actors/StyleSheetsActor.h>
#include <LibDevTools/Actors/TabActor.h>
#include <LibDevTools/Actors/TargetConfigurationActor.h>
#include <LibDevTools/Actors/ThreadActor.h>
@ -92,9 +93,10 @@ void WatcherActor::handle_message(Message const& message)
auto& css_properties = devtools().register_actor<CSSPropertiesActor>();
auto& console = devtools().register_actor<ConsoleActor>(m_tab);
auto& inspector = devtools().register_actor<InspectorActor>(m_tab);
auto& style_sheets = devtools().register_actor<StyleSheetsActor>(m_tab);
auto& thread = devtools().register_actor<ThreadActor>();
auto& target = devtools().register_actor<FrameActor>(m_tab, css_properties, console, inspector, thread);
auto& target = devtools().register_actor<FrameActor>(m_tab, css_properties, console, inspector, style_sheets, thread);
m_target = target;
response.set("type"sv, "target-available-form"sv);