mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02: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:
committed by
Andreas Kling
parent
1499d2421e
commit
5626e1b324
Notes:
sideshowbarker
2024-07-17 16:49:05 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/5626e1b324 Pull-request: https://github.com/SerenityOS/serenity/pull/13244 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user