mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
LibWeb: Factor out SVG path parsing from SVGPathElement
Converting a Vector<PathInstruction> is now done by a free function so that we can share this code with HTML::Path2D. :^)
This commit is contained in:
parent
b716c14c32
commit
65d762130a
Notes:
sideshowbarker
2024-07-17 05:58:46 +09:00
Author: https://github.com/awesomekling
Commit: 65d762130a
Pull-request: https://github.com/SerenityOS/serenity/pull/16249
Reviewed-by: https://github.com/AnthonyIacono
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 27 additions and 21 deletions
|
@ -27,8 +27,9 @@ private:
|
|||
SVGPathElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
Vector<PathInstruction> m_instructions;
|
||||
Gfx::FloatPoint m_previous_control_point = {};
|
||||
Optional<Gfx::Path> m_path;
|
||||
};
|
||||
|
||||
Gfx::Path path_from_path_instructions(Span<PathInstruction const>);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue