mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb: Make 2D canvas save/restore perform save/restore on painter
This ensures that any internal state maintained by the painter gets synchronized appropriately.
This commit is contained in:
parent
8540954bf8
commit
0d57de4236
Notes:
github-actions[bot]
2024-08-20 07:37:26 +00:00
Author: https://github.com/awesomekling
Commit: 0d57de4236
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1024
3 changed files with 13 additions and 0 deletions
|
@ -106,6 +106,9 @@ private:
|
|||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
virtual Gfx::Painter* painter_for_canvas_state() override { return painter(); }
|
||||
virtual Gfx::Path& path_for_canvas_state() override { return path(); }
|
||||
|
||||
struct PreparedTextGlyph {
|
||||
String glyph;
|
||||
Gfx::IntPoint position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue