1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

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.
This commit is contained in:
Luke Wilde 2022-06-19 19:42:27 +01:00 committed by Linus Groh
parent cd9864bbf1
commit adf8341c4e
3 changed files with 29 additions and 18 deletions

View file

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