Add CanGc as arguments in methods in devtools.rs, CharacterData, CSSStyleRule, CSSStyleSheet (#36375)

Add CanGc as arguments in methods in devtools.rs, CharacterData,
CSSStyleRule, CSSStyleSheet

Testing: These changes do not require tests because they are a refactor.
Addressed part of https://github.com/servo/servo/issues/34573.

---------

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-04-06 16:44:58 -07:00 committed by GitHub
parent 1f558a0d49
commit 33b00dbe40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 30 deletions

View file

@ -84,7 +84,7 @@ DOMInterfaces = {
},
'CharacterData': {
'canGc': ['Before', 'After', 'ReplaceWith']
'canGc': ['Before', 'After', 'Remove', 'ReplaceWith']
},
'CountQueuingStrategy': {
@ -119,6 +119,14 @@ DOMInterfaces = {
'canGc': ['Item', 'IndexedGetter'],
},
'CSSStyleRule': {
'canGc': ['Style'],
},
'CSSStyleSheet': {
'canGc': ['AddRule', 'DeleteRule', 'GetCssRules', 'GetRules', 'InsertRule', 'RemoveRule'],
},
'Crypto': {
'canGc': ['Subtle'],
},