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.
This commit is contained in:
Timothy Flynn 2024-03-29 09:46:55 -04:00 committed by Andreas Kling
parent 4a94a7cdbb
commit b1a30d8269
Notes: sideshowbarker 2024-07-17 00:47:29 +09:00
2 changed files with 0 additions and 9 deletions

View file

@ -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();

View file

@ -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);
}