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:
parent
cd9864bbf1
commit
adf8341c4e
3 changed files with 29 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue