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

LibWeb: Add SVG <polyline> element and test case :^)

This commit is contained in:
Sam Atkins 2022-02-11 17:28:24 +00:00 committed by Andreas Kling
parent 17912330c4
commit 116a1f485c
13 changed files with 141 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGfx/Point.h>
namespace Web::SVG {
@ -42,6 +43,7 @@ public:
static Optional<float> parse_coordinate(StringView input);
static Optional<float> parse_length(StringView input);
static Optional<float> parse_positive_length(StringView input);
static Vector<Gfx::FloatPoint> parse_points(StringView input);
private:
void parse_drawto();