summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebContentClient.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-01 21:10:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-01 21:25:06 +0200
commit6cf59b6ae96aeeb8c0da957a07f913c4fa38467f (patch)
treeb3f1691b59c3280993d4a8c2866f821ae15c1875 /Userland/Libraries/LibWeb/WebContentClient.cpp
parent4e6f03a860595f9eb2628e12ddbd333e26b0622f (diff)
downloadserenity-6cf59b6ae96aeeb8c0da957a07f913c4fa38467f.zip
Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebContentClient.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp
index cb06f27cf1..ce31a3c2ee 100644
--- a/Userland/Libraries/LibWeb/WebContentClient.cpp
+++ b/Userland/Libraries/LibWeb/WebContentClient.cpp
@@ -49,9 +49,7 @@ void WebContentClient::handle(const Messages::WebContentClient::DidInvalidateCon
void WebContentClient::handle(const Messages::WebContentClient::DidChangeSelection&)
{
-#if SPAM_DEBUG
- dbgln("handle: WebContentClient::DidChangeSelection!");
-#endif
+ dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidChangeSelection!");
m_view.notify_server_did_change_selection({});
}
@@ -105,9 +103,7 @@ void WebContentClient::handle(const Messages::WebContentClient::DidHoverLink& me
void WebContentClient::handle(const Messages::WebContentClient::DidUnhoverLink&)
{
-#if SPAM_DEBUG
- dbgln("handle: WebContentClient::DidUnhoverLink!");
-#endif
+ dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidUnhoverLink!");
m_view.notify_server_did_unhover_link({});
}