Skip to content

Commit

Permalink
LibWeb: Put selection-related debug spam behind an #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Mar 22, 2020
1 parent d7133ea commit 0395b25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libraries/LibWeb/HtmlView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include <LibWeb/ResourceLoader.h>
#include <stdio.h>

//#define SELECTION_DEBUG

namespace Web {

HtmlView::HtmlView()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 0395b25

Please sign in to comment.