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

LibWeb: Use number value from CSS Tokens

This lets us get rid of `try_parse_float()`, and simplifies the various
places we were calling it before.
This commit is contained in:
Sam Atkins 2021-11-18 11:50:35 +00:00 committed by Andreas Kling
parent 1d2276f0e7
commit 522faa1554
2 changed files with 46 additions and 153 deletions

View file

@ -178,7 +178,6 @@ private:
[[nodiscard]] RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
[[nodiscard]] RefPtr<PropertyOwningCSSStyleDeclaration> convert_to_declaration(NonnullRefPtr<StyleBlockRule>);
Optional<float> try_parse_float(StringView string);
Optional<Color> parse_color(StyleComponentValueRule const&);
Optional<Length> parse_length(StyleComponentValueRule const&);