1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

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
parent d09b5e8484
commit fd6bb41519

View file

@ -226,7 +226,8 @@ void CanvasRenderingContext2D::stroke_internal(Gfx::Path const& path)
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)