diff options
author | Arya Nair <aryaajitnair@gmail.com> | 2025-03-19 23:33:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 18:03:09 +0000 |
commit | cb56ac8561ab4f27d0268881e7c95ee57a2eadfe (patch) | |
tree | f1d73e3b202a8d06ce988578cc0ee355a451d7be /components/script_bindings | |
parent | 0917e080df769011f6fd4348d63f8fd5895baa21 (diff) | |
download | servo-cb56ac8561ab4f27d0268881e7c95ee57a2eadfe.tar.gz servo-cb56ac8561ab4f27d0268881e7c95ee57a2eadfe.zip |
feat: add can_gc argument to to_frozen_array (#36043)
* feat: add can_gc argument to to_frozen_array
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
* fix: linting issues
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
* feat: add can_gc in binding.conf
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
* fix: linting issues
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
---------
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
Diffstat (limited to 'components/script_bindings')
-rw-r--r-- | components/script_bindings/codegen/Bindings.conf | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/components/script_bindings/codegen/Bindings.conf b/components/script_bindings/codegen/Bindings.conf index a6adf7e45df..1cd8616f194 100644 --- a/components/script_bindings/codegen/Bindings.conf +++ b/components/script_bindings/codegen/Bindings.conf @@ -99,6 +99,10 @@ DOMInterfaces = { 'canGc': ['AppendRule', 'CssRules', 'DeleteRule', 'FindRule'], }, +'CSSLayerStatementRule': { + 'canGc': ['NameList'], +}, + 'CSSMediaRule': { 'canGc': ['Media'], }, @@ -121,7 +125,7 @@ DOMInterfaces = { }, 'DataTransfer': { - 'canGc': ['Files'] + 'canGc': ['Files', 'Types'] }, 'DataTransferItem': { @@ -201,6 +205,10 @@ DOMInterfaces = { 'canGc': ['DispatchEvent'], }, +'ExtendableMessageEvent': { + 'canGc': ['Ports'], +}, + 'FakeXRDevice': { 'canGc': ['Disconnect'], }, @@ -224,7 +232,7 @@ DOMInterfaces = { 'GamepadHapticActuator': { 'inRealms': ['PlayEffect', 'Reset'], - 'canGc': ['PlayEffect', 'Reset'], + 'canGc': ['PlayEffect', 'Reset', 'Effects'], }, 'GlobalScope': { @@ -250,6 +258,10 @@ DOMInterfaces = { 'weakReferenceable': True, }, +'GPUCompilationInfo': { + 'canGc': ['Messages'], +}, + 'GPUDevice': { 'inRealms': [ 'CreateComputePipelineAsync', @@ -387,6 +399,10 @@ DOMInterfaces = { 'canGc': ['SetText'] }, +'IntersectionObserver': { + 'canGc': ['Thresholds'] +}, + 'Location': { 'canGc': ['Assign', 'Reload', 'Replace', 'SetHash', 'SetHost', 'SetHostname', 'SetHref', 'SetPathname', 'SetPort', 'SetProtocol', 'SetSearch'], }, @@ -413,6 +429,10 @@ DOMInterfaces = { 'canGc': ['GetOnmessage'], }, +'MessageEvent': { + 'canGc': ['Ports'], +}, + 'MouseEvent': { 'canGc': ['OffsetX', 'OffsetY'], }, @@ -424,6 +444,7 @@ DOMInterfaces = { 'Navigator': { 'inRealms': ['GetVRDisplays'], + 'canGc': ['Languages'], }, 'Node': { @@ -435,7 +456,7 @@ DOMInterfaces = { }, 'Notification': { - 'canGc': ['RequestPermission'], + 'canGc': ['RequestPermission', 'Actions', 'Vibrate'], }, 'OfflineAudioContext': { @@ -459,6 +480,10 @@ DOMInterfaces = { 'canGc': ['Mark', 'Measure'], }, +'PerformanceObserver': { + 'canGc': ['SupportedEntryTypes'], +}, + 'Permissions': { 'canGc': ['Query', 'Request', 'Revoke'], }, @@ -609,13 +634,17 @@ DOMInterfaces = { 'canGc': ['GetOffsetReferenceSpace'], }, +'XRRenderState': { + 'canGc': ['Layers'], +}, + 'XRRigidTransform': { 'canGc': ['Position', 'Orientation', 'Inverse', 'Matrix'], }, 'XRSession': { 'inRealms': ['RequestReferenceSpace', 'UpdateRenderState', 'UpdateTargetFrameRate'], - 'canGc': ['End', 'RequestReferenceSpace', 'UpdateTargetFrameRate', 'RequestHitTestSource', 'GetSupportedFrameRates'], + 'canGc': ['End', 'RequestReferenceSpace', 'UpdateTargetFrameRate', 'RequestHitTestSource', 'GetSupportedFrameRates', 'EnabledFeatures'], }, 'XRSystem': { @@ -656,6 +685,10 @@ DOMInterfaces = { "canGc": ["Cancel", "Read", "ReleaseLock"] }, +'ResizeObserverEntry': { + 'canGc': ['BorderBoxSize', 'ContentBoxSize', 'DevicePixelContentBoxSize'], +}, + 'WritableStream': { 'canGc': ['Abort', 'Close', 'GetWriter'], 'inRealms': ['Abort', 'Close', 'GetWriter'], @@ -671,6 +704,10 @@ DOMInterfaces = { 'inRealms': ['Abort', 'Close', 'Write'], }, +'WorkerNavigator': { + 'canGc': ['Languages'], +}, + } Dictionaries = { |