diff options
Diffstat (limited to 'Userland/Services/WebContent/WebContentConsoleClient.h')
-rw-r--r-- | Userland/Services/WebContent/WebContentConsoleClient.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/WebContentConsoleClient.h b/Userland/Services/WebContent/WebContentConsoleClient.h index a8dfc28a16..c234bb779d 100644 --- a/Userland/Services/WebContent/WebContentConsoleClient.h +++ b/Userland/Services/WebContent/WebContentConsoleClient.h @@ -27,6 +27,12 @@ private: virtual void clear() override; virtual JS::ThrowCompletionOr<JS::Value> printer(JS::Console::LogLevel log_level, PrinterArguments) override; + virtual void add_css_style_to_current_message(StringView style) override + { + m_current_message_style.append(style); + m_current_message_style.append(';'); + } + ConnectionFromClient& m_client; WeakPtr<JS::Realm> m_realm; JS::Handle<ConsoleGlobalObject> m_console_global_object; @@ -48,6 +54,8 @@ private: String data; }; Vector<ConsoleOutput> m_message_log; + + StringBuilder m_current_message_style; }; } |