mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -26,6 +26,9 @@ class CanvasState {
|
|||
public:
|
||||
virtual ~CanvasState() = default;
|
||||
|
||||
virtual Gfx::Painter* painter_for_canvas_state() = 0;
|
||||
virtual Gfx::Path& path_for_canvas_state() = 0;
|
||||
|
||||
void save();
|
||||
void restore();
|
||||
void reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue