mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibWeb: Implement CanvasRenderingContext2D.save()
This commit is contained in:
parent
6d50ff71de
commit
7d435b5ada
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