mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
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:
parent
9465492edf
commit
763b1b0ee2
Notes:
github-actions[bot]
2025-04-23 10:40:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: 763b1b0ee2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4354
6 changed files with 135 additions and 73 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue