1
Fork 0
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:
Linus Groh 2021-12-27 14:31:23 +01:00 committed by Andreas Kling
parent 6d50ff71de
commit 7d435b5ada
3 changed files with 12 additions and 0 deletions

View file

@ -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;
};