LibHTML: Let's put debug output on the debugger stream

This commit is contained in:
Andreas Kling 2019-10-03 10:25:00 +02:00
parent 786494b62d
commit 9290117b77
Notes: sideshowbarker 2024-07-19 11:50:08 +09:00
3 changed files with 23 additions and 23 deletions

View file

@ -32,7 +32,7 @@ void HtmlView::set_document(Document* document)
#ifdef HTML_DEBUG
if (document != nullptr) {
printf("\033[33;1mLayout tree before layout:\033[0m\n");
dbgprintf("\033[33;1mLayout tree before layout:\033[0m\n");
::dump_tree(*m_layout_root);
}
#endif
@ -51,7 +51,7 @@ void HtmlView::layout_and_sync_size()
set_content_size(m_layout_root->rect().size());
#ifdef HTML_DEBUG
printf("\033[33;1mLayout tree after layout:\033[0m\n");
dbgprintf("\033[33;1mLayout tree after layout:\033[0m\n");
::dump_tree(*m_layout_root);
#endif
}