diff --git a/AK/Debug.h.in b/AK/Debug.h.in index 20ea9e39df..9bceac045a 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -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 diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index a297e41f9e..f13201ba9d 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -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) diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index b8731acec0..c0da3e8b60 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -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; } }