1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 01:25:07 +00:00

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
3 changed files with 5 additions and 5 deletions

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;
}
}