diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-02 23:07:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-06 00:27:09 +0200 |
commit | 369dd42d6751d1b11e1bb05d4afd3e57aed9f186 (patch) | |
tree | e91d3632444848215f6feac985f19b0b835e8eb1 /Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h | |
parent | 4452b5ca098a10e31eab5c49837dfcb107fe1414 (diff) | |
download | serenity-369dd42d6751d1b11e1bb05d4afd3e57aed9f186.zip |
LibWeb: Make ImageData GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h index 8cb2e56a1d..8c5e7987ea 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.h @@ -70,8 +70,8 @@ public: virtual void fill(String const& fill_rule) override; virtual void fill(Path2D& path, String const& fill_rule) override; - virtual RefPtr<ImageData> create_image_data(int width, int height) const override; - virtual DOM::ExceptionOr<RefPtr<ImageData>> get_image_data(int x, int y, int width, int height) const override; + virtual JS::GCPtr<ImageData> create_image_data(int width, int height) const override; + virtual DOM::ExceptionOr<JS::GCPtr<ImageData>> get_image_data(int x, int y, int width, int height) const override; virtual void put_image_data(ImageData const&, float x, float y) override; virtual void reset_to_default_state() override; |