LibWeb: Rename PARSER_DEBUG => HTML_PARSER_DEBUG

Since this macro was created we gained a couple more parsers in the
system :^)
This commit is contained in:
Idan Horowitz 2022-03-24 22:06:19 +02:00 committed by Andreas Kling
parent 1499d2421e
commit 5626e1b324
Notes: sideshowbarker 2024-07-17 16:49:05 +09:00
3 changed files with 5 additions and 5 deletions

View file

@ -318,8 +318,8 @@
#cmakedefine01 OCCLUSIONS_DEBUG
#endif
#ifndef PARSER_DEBUG
#cmakedefine01 PARSER_DEBUG
#ifndef HTML_PARSER_DEBUG
#cmakedefine01 HTML_PARSER_DEBUG
#endif
#ifndef PATH_DEBUG

View file

@ -132,7 +132,7 @@ set(NVME_DEBUG ON)
set(OCCLUSIONS_DEBUG ON)
set(OFFD_DEBUG ON)
set(PAGE_FAULT_DEBUG ON)
set(PARSER_DEBUG ON)
set(HTML_PARSER_DEBUG ON)
set(PATA_DEBUG ON)
set(PATH_DEBUG ON)
set(PCI_DEBUG ON)

View file

@ -162,7 +162,7 @@ void HTMLParser::run()
break;
auto& token = optional_token.value();
dbgln_if(PARSER_DEBUG, "[{}] {}", insertion_mode_name(), token.to_string());
dbgln_if(HTML_PARSER_DEBUG, "[{}] {}", insertion_mode_name(), token.to_string());
// https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
// As each token is emitted from the tokenizer, the user agent must follow the appropriate steps from the following list, known as the tree construction dispatcher:
@ -189,7 +189,7 @@ void HTMLParser::run()
}
if (m_stop_parsing) {
dbgln_if(PARSER_DEBUG, "Stop parsing{}! :^)", m_parsing_fragment ? " fragment" : "");
dbgln_if(HTML_PARSER_DEBUG, "Stop parsing{}! :^)", m_parsing_fragment ? " fragment" : "");
break;
}
}