summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/ClientConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/WebContent/ClientConnection.cpp')
-rw-r--r--Userland/Services/WebContent/ClientConnection.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/Userland/Services/WebContent/ClientConnection.cpp b/Userland/Services/WebContent/ClientConnection.cpp
index 0e771c20cb..f1865b21d9 100644
--- a/Userland/Services/WebContent/ClientConnection.cpp
+++ b/Userland/Services/WebContent/ClientConnection.cpp
@@ -25,6 +25,7 @@
*/
#include <AK/Badge.h>
+#include <AK/Debug.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/SystemTheme.h>
#include <WebContent/ClientConnection.h>
@@ -79,25 +80,19 @@ void ClientConnection::handle(const Messages::WebContentServer::UpdateSystemThem
void ClientConnection::handle(const Messages::WebContentServer::LoadURL& message)
{
-#ifdef DEBUG_SPAM
- dbg() << "handle: WebContentServer::LoadURL: url=" << message.url();
-#endif
+ dbgln<debug_spam>("handle: WebContentServer::LoadURL: url={}", message.url());
page().load(message.url());
}
void ClientConnection::handle(const Messages::WebContentServer::LoadHTML& message)
{
-#ifdef DEBUG_SPAM
- dbg() << "handle: WebContentServer::LoadHTML: html=" << message.html() << ", url=" << message.url();
-#endif
+ dbgln<debug_spam>("handle: WebContentServer::LoadHTML: html={}, url={}", message.html(), message.url());
page().load_html(message.html(), message.url());
}
void ClientConnection::handle(const Messages::WebContentServer::SetViewportRect& message)
{
-#ifdef DEBUG_SPAM
- dbg() << "handle: WebContentServer::SetViewportRect: rect=" << message.rect();
-#endif
+ dbgln<debug_spam>("handle: WebContentServer::SetViewportRect: rect={}", message.rect());
m_page_host->set_viewport_rect(message.rect());
}