mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Keep SVG elliptical arc shape when applying viewbox
When doing viewbox transforms, elliptical always had large arc and sweep flag set to false. Preserve these flags so they can be set correctly when applying viewbox transformations.
This commit is contained in:
parent
dd71754d10
commit
f0a1ab6f84
Notes:
sideshowbarker
2024-07-17 17:32:39 +09:00
Author: https://github.com/danners
Commit: f0a1ab6f84
Pull-request: https://github.com/SerenityOS/serenity/pull/13004
Reviewed-by: https://github.com/TobyAsE ✅
3 changed files with 15 additions and 5 deletions
|
@ -110,7 +110,9 @@ void Path::elliptical_arc_to(const FloatPoint& point, const FloatPoint& radii, d
|
|||
{ rx, ry },
|
||||
x_axis_rotation,
|
||||
theta_1,
|
||||
theta_delta);
|
||||
theta_delta,
|
||||
large_arc,
|
||||
sweep);
|
||||
}
|
||||
|
||||
void Path::close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue