From 0395b25e3fea1ffa8b20d013b2bfd650e64043ed Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Mar 2020 08:28:38 +0100 Subject: [PATCH] LibWeb: Put selection-related debug spam behind an #ifdef --- Libraries/LibWeb/HtmlView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibWeb/HtmlView.cpp b/Libraries/LibWeb/HtmlView.cpp index 240a6cc3cf..45b643dff1 100644 --- a/Libraries/LibWeb/HtmlView.cpp +++ b/Libraries/LibWeb/HtmlView.cpp @@ -48,6 +48,8 @@ #include #include +//#define SELECTION_DEBUG + namespace Web { HtmlView::HtmlView() @@ -417,9 +419,12 @@ const Document* HtmlView::document() const void HtmlView::dump_selection(const char* event_name) { + UNUSED_PARAM(event_name); +#ifdef SELECTION_DEBUG dbg() << event_name << " selection start: " << layout_root()->selection().start().layout_node << ":" << layout_root()->selection().start().index_in_node << ", end: " << layout_root()->selection().end().layout_node << ":" << layout_root()->selection().end().index_in_node; +#endif } void HtmlView::did_scroll()