diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index e5c5d788d8a..78a50680eb1 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -2134,7 +2134,7 @@ RefPtr Parser::convert_to_rule(NonnullRefPtr rule) return {}; auto child_tokens = TokenStream { rule->block()->values() }; - auto parser_rules = consume_a_list_of_rules(child_tokens, TopLevel::No); + auto parser_rules = parse_a_list_of_rules(child_tokens); NonnullRefPtrVector child_rules; for (auto& raw_rule : parser_rules) { if (auto child_rule = convert_to_rule(raw_rule)) @@ -2158,7 +2158,7 @@ RefPtr Parser::convert_to_rule(NonnullRefPtr rule) if (!rule->block()) return {}; auto child_tokens = TokenStream { rule->block()->values() }; - auto parser_rules = consume_a_list_of_rules(child_tokens, TopLevel::No); + auto parser_rules = parse_a_list_of_rules(child_tokens); NonnullRefPtrVector child_rules; for (auto& raw_rule : parser_rules) { if (auto child_rule = convert_to_rule(raw_rule)) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h index 5f37f05e4bb..cea43aae450 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h @@ -139,7 +139,7 @@ private: template ParsedStyleSheet parse_a_stylesheet(TokenStream&, Optional location); - // For the content of at-rules such as @media. It differs from "Parse a stylesheet" in the handling of and . + // "Parse a list of rules" is intended for the content of at-rules such as @media. It differs from "Parse a stylesheet" in the handling of and . template NonnullRefPtrVector parse_a_list_of_rules(TokenStream&); template