From 7d435b5adacdaa8f038669d10fba9f615265897a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 27 Dec 2021 14:31:23 +0100 Subject: LibWeb: Implement CanvasRenderingContext2D.save() --- Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h') diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h index 90e7cf7c9b..7d2552a370 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h @@ -69,6 +69,8 @@ public: RefPtr 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 m_drawing_state_stack; Gfx::Path m_path; }; -- cgit v1.2.3