LibWeb: Add CanvasRenderingContext2D.canvas

This commit is contained in:
Linus Groh 2020-05-21 00:09:31 +01:00 committed by Andreas Kling
commit a0f3e3c50e
Notes: sideshowbarker 2024-07-19 06:17:54 +09:00
3 changed files with 28 additions and 11 deletions

View file

@ -77,6 +77,8 @@ public:
RefPtr<ImageData> create_image_data(JS::GlobalObject&, int width, int height) const;
void put_image_data(const ImageData&, float x, float y);
HTMLCanvasElement* element() { return m_element; }
private:
explicit CanvasRenderingContext2D(HTMLCanvasElement&);