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

LibWeb: Make SVG::AttributeParser use the new double parser

Because the result will be a float anyway get rid of the int parsing.
Also the grammar of SVG numbers matches the double parser grammar except
it can't have a sign but that should have been checked by the caller.
This commit is contained in:
davidot 2022-10-12 23:50:54 +02:00 committed by Linus Groh
parent 051134a21e
commit 1ab6cb1ee9
2 changed files with 10 additions and 51 deletions

View file

@ -68,7 +68,6 @@ private:
Vector<float> parse_elliptical_arg_argument();
void parse_whitespace(bool must_match_once = false);
void parse_comma_whitespace();
float parse_fractional_constant();
float parse_number();
float parse_nonnegative_number();
float parse_flag();