1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

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);