LibWeb: Put selection-related debug spam behind an #ifdef

This commit is contained in:
Andreas Kling 2020-03-22 08:28:38 +01:00
parent d7133ea326
commit 0395b25e3f
Notes: sideshowbarker 2024-07-19 08:11:15 +09:00

View file

@ -48,6 +48,8 @@
#include <LibWeb/ResourceLoader.h>
#include <stdio.h>
//#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()