mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
LibWeb: Implement CanvasRenderingContext2D.save()
This commit is contained in:
parent
6d50ff71de
commit
7d435b5ada
Notes:
sideshowbarker
2024-07-17 22:07:31 +09:00
Author: https://github.com/linusg
Commit: 7d435b5ada
Pull-request: https://github.com/SerenityOS/serenity/pull/11444
3 changed files with 12 additions and 0 deletions
|
@ -69,6 +69,8 @@ public:
|
|||
RefPtr<ImageData> create_image_data(int width, int height) const;
|
||||
void put_image_data(const ImageData&, float x, float y);
|
||||
|
||||
void save();
|
||||
|
||||
HTMLCanvasElement* canvas() { return m_element; }
|
||||
|
||||
private:
|
||||
|
@ -89,6 +91,7 @@ private:
|
|||
};
|
||||
|
||||
DrawingState m_drawing_state;
|
||||
Vector<DrawingState> m_drawing_state_stack;
|
||||
|
||||
Gfx::Path m_path;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue