mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +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
3 changed files with 5 additions and 5 deletions
|
@ -318,8 +318,8 @@
|
||||||
#cmakedefine01 OCCLUSIONS_DEBUG
|
#cmakedefine01 OCCLUSIONS_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PARSER_DEBUG
|
#ifndef HTML_PARSER_DEBUG
|
||||||
#cmakedefine01 PARSER_DEBUG
|
#cmakedefine01 HTML_PARSER_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PATH_DEBUG
|
#ifndef PATH_DEBUG
|
||||||
|
|
|
@ -132,7 +132,7 @@ set(NVME_DEBUG ON)
|
||||||
set(OCCLUSIONS_DEBUG ON)
|
set(OCCLUSIONS_DEBUG ON)
|
||||||
set(OFFD_DEBUG ON)
|
set(OFFD_DEBUG ON)
|
||||||
set(PAGE_FAULT_DEBUG ON)
|
set(PAGE_FAULT_DEBUG ON)
|
||||||
set(PARSER_DEBUG ON)
|
set(HTML_PARSER_DEBUG ON)
|
||||||
set(PATA_DEBUG ON)
|
set(PATA_DEBUG ON)
|
||||||
set(PATH_DEBUG ON)
|
set(PATH_DEBUG ON)
|
||||||
set(PCI_DEBUG ON)
|
set(PCI_DEBUG ON)
|
||||||
|
|
|
@ -162,7 +162,7 @@ void HTMLParser::run()
|
||||||
break;
|
break;
|
||||||
auto& token = optional_token.value();
|
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
|
// 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:
|
// 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) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue