mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Put selection-related debug spam behind an #ifdef
This commit is contained in:
parent
d7133ea326
commit
0395b25e3f
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,8 @@
|
||||||
#include <LibWeb/ResourceLoader.h>
|
#include <LibWeb/ResourceLoader.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
//#define SELECTION_DEBUG
|
||||||
|
|
||||||
namespace Web {
|
namespace Web {
|
||||||
|
|
||||||
HtmlView::HtmlView()
|
HtmlView::HtmlView()
|
||||||
|
@ -417,9 +419,12 @@ const Document* HtmlView::document() const
|
||||||
|
|
||||||
void HtmlView::dump_selection(const char* event_name)
|
void HtmlView::dump_selection(const char* event_name)
|
||||||
{
|
{
|
||||||
|
UNUSED_PARAM(event_name);
|
||||||
|
#ifdef SELECTION_DEBUG
|
||||||
dbg() << event_name << " selection start: "
|
dbg() << event_name << " selection start: "
|
||||||
<< layout_root()->selection().start().layout_node << ":" << layout_root()->selection().start().index_in_node << ", end: "
|
<< 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;
|
<< layout_root()->selection().end().layout_node << ":" << layout_root()->selection().end().index_in_node;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void HtmlView::did_scroll()
|
void HtmlView::did_scroll()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue