Kaynağa Gözat

LibWebView+WebContent: Remove some SPAM_DEBUG log points

I don't know if anyone ever enables these anymore but I think we're well
past needing to persist logging these particular IPC endpoints.
Timothy Flynn 1 yıl önce
ebeveyn
işleme
b1a30d8269

+ 0 - 5
Userland/Libraries/LibWebView/WebContentClient.cpp

@@ -6,7 +6,6 @@
 
 #include "WebContentClient.h"
 #include "ViewImplementation.h"
-#include <AK/Debug.h>
 #include <LibWeb/Cookie/ParsedCookie.h>
 
 namespace WebView {
@@ -117,7 +116,6 @@ void WebContentClient::did_request_cursor_change(u64 page_id, i32 cursor_type)
 
 void WebContentClient::did_layout(u64 page_id, Gfx::IntSize content_size)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidLayout! content_size={}", content_size);
     if (auto view = view_for_page_id(page_id); view.has_value()) {
         if (view->on_did_layout)
             view->on_did_layout(content_size);
@@ -126,7 +124,6 @@ void WebContentClient::did_layout(u64 page_id, Gfx::IntSize content_size)
 
 void WebContentClient::did_change_title(u64 page_id, ByteString const& title)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidChangeTitle! title={}", title);
     if (auto view = view_for_page_id(page_id); view.has_value()) {
         if (!view->on_title_change)
             return;
@@ -172,7 +169,6 @@ void WebContentClient::did_leave_tooltip_area(u64 page_id)
 
 void WebContentClient::did_hover_link(u64 page_id, URL::URL const& url)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidHoverLink! url={}", url);
     if (auto view = view_for_page_id(page_id); view.has_value()) {
         if (view->on_link_hover)
             view->on_link_hover(url);
@@ -181,7 +177,6 @@ void WebContentClient::did_hover_link(u64 page_id, URL::URL const& url)
 
 void WebContentClient::did_unhover_link(u64 page_id)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidUnhoverLink!");
     if (auto view = view_for_page_id(page_id); view.has_value()) {
         if (view->on_link_unhover)
             view->on_link_unhover();

+ 0 - 4
Userland/Services/WebContent/ConnectionFromClient.cpp

@@ -9,7 +9,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Debug.h>
 #include <AK/JsonObject.h>
 #include <AK/QuickSort.h>
 #include <LibGfx/Bitmap.h>
@@ -133,7 +132,6 @@ void ConnectionFromClient::update_screen_rects(u64 page_id, Vector<Web::DevicePi
 
 void ConnectionFromClient::load_url(u64 page_id, const URL::URL& url)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentServer::LoadURL: url={}", url);
     auto page = this->page(page_id);
     if (!page.has_value())
         return;
@@ -153,14 +151,12 @@ void ConnectionFromClient::load_url(u64 page_id, const URL::URL& url)
 
 void ConnectionFromClient::load_html(u64 page_id, ByteString const& html)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentServer::LoadHTML: html={}", html);
     if (auto page = this->page(page_id); page.has_value())
         page->page().load_html(html);
 }
 
 void ConnectionFromClient::set_viewport_rect(u64 page_id, Web::DevicePixelRect const& rect)
 {
-    dbgln_if(SPAM_DEBUG, "handle: WebContentServer::SetViewportRect: rect={}", rect);
     if (auto page = this->page(page_id); page.has_value())
         page->set_viewport_rect(rect);
 }