mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Put selection-related debug spam behind an #ifdef
This commit is contained in:
parent
d7133ea326
commit
0395b25e3f
Notes:
sideshowbarker
2024-07-19 08:11:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0395b25e3fe
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue