LibWeb/CSS: Split out @namespace parsing code

This commit is contained in:
Sam Atkins
2024-08-09 12:26:38 +01:00
committed by Andreas Kling
parent 16049db560
commit 5b883929e0
2 changed files with 51 additions and 30 deletions

View File

@@ -223,6 +223,7 @@ private:
CSSRule* convert_to_rule(NonnullRefPtr<Rule>);
CSSMediaRule* convert_to_media_rule(NonnullRefPtr<Rule>);
JS::GCPtr<CSSImportRule> convert_to_import_rule(Rule&);
JS::GCPtr<CSSNamespaceRule> convert_to_namespace_rule(Rule&);
PropertyOwningCSSStyleDeclaration* convert_to_style_declaration(Vector<DeclarationOrAtRule> const& declarations);
Optional<StyleProperty> convert_to_style_property(Declaration const&);