mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +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:
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 ✅
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue