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
commit 5b883929e0
Notes: github-actions[bot] 2024-08-10 08:39:12 +00:00
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&);