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

LibWeb: SVG: implement SmoothQuadraticBezierCurve

For this we need to track the control point of the previous command and
calculate a new control point based on it.
This commit is contained in:
Simon Danner 2020-09-07 22:58:47 +02:00 committed by Andreas Kling
parent 772fcba814
commit 9648bf4ada
2 changed files with 41 additions and 2 deletions

View file

@ -112,6 +112,8 @@ public:
private:
Vector<PathInstruction> m_instructions;
Gfx::FloatPoint m_previous_control_point = {};
};
}