summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-06-19 19:42:27 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-27 22:54:41 +0100
commitadf8341c4ef7c54d7c2684ad8dd95bb6e764c3b0 (patch)
tree50ff55234b933425264cade5d2a86c251cea4277 /Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
parentcd9864bbf1105dbc20e9ea293198ccab258388c5 (diff)
downloadserenity-adf8341c4ef7c54d7c2684ad8dd95bb6e764c3b0.zip
LibWeb: Forward CRC2D's ref count to HTMLCanvasElement
This allows HTMLCanvasElement and CRC2D to share their lifetime, as JS allows them to arbitrarily access them at any time and CRC2D.canvas expects a non-null return value.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl')
-rw-r--r--Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
index f70159c8f3..20ae8750e8 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
+++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
@@ -47,7 +47,7 @@ interface CanvasRenderingContext2D {
undefined reset();
boolean isContextLost();
- readonly attribute HTMLCanvasElement canvas;
+ [ImplementedAs=canvas_for_binding] readonly attribute HTMLCanvasElement canvas;
TextMetrics measureText(DOMString text);