LibWeb: Implement remaining CSS parse_as...() entry points

This commit is contained in:
Sam Atkins
2021-07-06 16:32:18 +01:00
committed by Andreas Kling
parent 65fe3895e6
commit 57f6d86996
2 changed files with 52 additions and 38 deletions

View File

@@ -169,6 +169,7 @@ private:
[[nodiscard]] RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
[[nodiscard]] RefPtr<CSSStyleDeclaration> convert_to_declaration(NonnullRefPtr<StyleBlockRule>);
[[nodiscard]] Optional<StyleProperty> convert_to_style_property(StyleDeclarationRule&);
static Optional<float> try_parse_float(StringView string);