LibWeb: Apply the current transform in CRC2D.stroke()

This makes the Google Docs spelling and grammar squiggles appear in the
correct position.
This commit is contained in:
Luke Wilde 2022-11-08 18:10:22 +00:00 committed by Linus Groh
commit fd6bb41519
Notes: sideshowbarker 2024-07-17 17:38:29 +09:00

View file

@ -226,7 +226,8 @@ void CanvasRenderingContext2D::stroke_internal(Gfx::Path const& path)
void CanvasRenderingContext2D::stroke() void CanvasRenderingContext2D::stroke()
{ {
stroke_internal(path()); auto transformed_path = path().copy_transformed(drawing_state().transform);
stroke_internal(transformed_path);
} }
void CanvasRenderingContext2D::stroke(Path2D const& path) void CanvasRenderingContext2D::stroke(Path2D const& path)