refactor: add CanGc as argument to ByteLengthQueuingStrategy::GetSize (#35594)

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-02-21 22:16:37 -08:00 committed by GitHub
parent 245a39c07e
commit a741c48dc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -62,7 +62,7 @@ impl ByteLengthQueuingStrategyMethods<crate::DomTypeHolder> for ByteLengthQueuin
} }
/// <https://streams.spec.whatwg.org/#blqs-size> /// <https://streams.spec.whatwg.org/#blqs-size>
fn GetSize(&self) -> Fallible<Rc<Function>> { fn GetSize(&self, _can_gc: CanGc) -> Fallible<Rc<Function>> {
let global = self.global(); let global = self.global();
// Return this's relevant global object's byte length queuing strategy // Return this's relevant global object's byte length queuing strategy
// size function. // size function.

View file

@ -66,6 +66,10 @@ DOMInterfaces = {
'canGc': ['GetCharacteristic', 'GetCharacteristics', 'GetIncludedService', 'GetIncludedServices'], 'canGc': ['GetCharacteristic', 'GetCharacteristics', 'GetIncludedService', 'GetIncludedServices'],
}, },
'ByteLengthQueuingStrategy': {
'canGc': ['GetSize'],
},
'CanvasGradient': { 'CanvasGradient': {
'canGc': ['AddColorStop'], 'canGc': ['AddColorStop'],
}, },