CanGc fixes (#33852)

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
chickenleaf 2024-10-16 08:20:28 +05:30 committed by GitHub
parent 5b8fbb023d
commit a2f81d69c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 92 additions and 63 deletions

View file

@ -20,12 +20,12 @@ DOMInterfaces = {
'AudioContext': {
'inRealms': ['Close', 'Suspend'],
'canGc':['CreateMediaStreamDestination'],
'canGc':['CreateMediaStreamDestination', 'CreateMediaElementSource'],
},
'BaseAudioContext': {
'inRealms': ['DecodeAudioData', 'Resume', 'ParseFromString', 'GetBounds', 'GetClientRects'],
'canGc': ['CreateOscillator', 'CreateStereoPanner'],
'canGc': ['CreateOscillator', 'CreateStereoPanner', 'CreateGain'],
},
'Blob': {
@ -73,6 +73,15 @@ DOMInterfaces = {
'canGc': ['FromMatrix', 'FromFloat32Array', 'FromFloat64Array'],
},
'DOMQuad': {
'canGc': ['FromRect', 'FromQuad'],
},
'DOMPoint': {
'canGc': ['FromPoint'],
},
'DOMMatrixReadOnly': {
'canGc': ['Multiply', 'Inverse', 'Scale', 'Translate', 'Rotate', 'RotateFromVector','FlipY', 'ScaleNonUniform', 'Scale3d', 'RotateAxisAngle', 'SkewX', 'SkewY', 'FlipX', 'TransformPoint', 'FromFloat32Array', 'FromFloat64Array','FromMatrix'],
},
@ -145,6 +154,11 @@ DOMInterfaces = {
'canGc': ['Clone'],
},
'MediaSession': {
'canGc': ['GetMetadata'],
},
'MediaQueryList': {
'weakReferenceable': True,
},
@ -251,6 +265,7 @@ DOMInterfaces = {
'XRSession': {
'inRealms': ['RequestReferenceSpace', 'UpdateRenderState', 'UpdateTargetFrameRate'],
'canGc': ['End'],
},
'XRSystem': {