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:
parent
d09b5e8484
commit
fd6bb41519
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue