mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +00:00
LibWeb: Make SVG AttributeParser::parse_path_data() static
This is mostly a style thing, but it matches the other APIs.
This commit is contained in:
parent
ab440b3e50
commit
44b64cb8b0
3 changed files with 14 additions and 12 deletions
|
@ -35,19 +35,18 @@ struct PathInstruction {
|
|||
|
||||
class AttributeParser final {
|
||||
public:
|
||||
AttributeParser(StringView source);
|
||||
~AttributeParser() = default;
|
||||
|
||||
Vector<PathInstruction> parse_path_data();
|
||||
|
||||
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);
|
||||
static Vector<PathInstruction> parse_path_data(StringView input);
|
||||
|
||||
private:
|
||||
void parse_drawto();
|
||||
AttributeParser(StringView source);
|
||||
|
||||
void parse_drawto();
|
||||
void parse_moveto();
|
||||
void parse_closepath();
|
||||
void parse_lineto();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue