LibWeb/CSS: Move RuleContext type out of Parser.h

This was previously internal to the Parser, but we'd like to pass it in
from outside.
This commit is contained in:
Sam Atkins 2025-04-14 17:10:20 +01:00
parent 9465492edf
commit 763b1b0ee2
Notes: github-actions[bot] 2025-04-23 10:40:02 +00:00
6 changed files with 135 additions and 73 deletions

View file

@ -171,7 +171,7 @@ GC::Ptr<CSSImportRule> Parser::convert_to_import_rule(AtRule const& rule)
if (supports_tokens.next_token().is_block()) {
supports = parse_a_supports(supports_tokens);
} else {
m_rule_context.append(ContextType::SupportsCondition);
m_rule_context.append(RuleContext::SupportsCondition);
auto declaration = consume_a_declaration(supports_tokens);
m_rule_context.take_last();
if (declaration.has_value()) {