refactor: add CanGc as argument to OffscreenCanvas methods (#35731)

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-03-01 00:05:22 -08:00 committed by GitHub
parent 494ebaa751
commit 4f8d816385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 6 deletions

View file

@ -414,6 +414,10 @@ DOMInterfaces = {
'canGc': ['StartRendering'],
},
'OffscreenCanvas': {
'canGc': ['GetContext', 'SetHeight', 'SetWidth'],
},
'OffscreenCanvasRenderingContext2D': {
'canGc': ['CreateImageData', 'CreateImageData_', 'GetImageData', 'GetTransform', 'SetFont', 'FillText', 'MeasureText', 'SetStrokeStyle', 'SetFillStyle', 'SetShadowColor'],
},