mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +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
Notes:
sideshowbarker
2024-07-17 17:38:29 +09:00
Author: https://github.com/Lubrsi
Commit: fd6bb41519
Pull-request: https://github.com/SerenityOS/serenity/pull/15980
Reviewed-by: https://github.com/linusg ✅
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