mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
refactor: add CanGc as argument to ByteLengthQueuingStrategy::GetSize (#35594)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
245a39c07e
commit
a741c48dc2
2 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,7 @@ impl ByteLengthQueuingStrategyMethods<crate::DomTypeHolder> for ByteLengthQueuin
|
|||
}
|
||||
|
||||
/// <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();
|
||||
// Return this's relevant global object's byte length queuing strategy
|
||||
// size function.
|
||||
|
|
|
@ -66,6 +66,10 @@ DOMInterfaces = {
|
|||
'canGc': ['GetCharacteristic', 'GetCharacteristics', 'GetIncludedService', 'GetIncludedServices'],
|
||||
},
|
||||
|
||||
'ByteLengthQueuingStrategy': {
|
||||
'canGc': ['GetSize'],
|
||||
},
|
||||
|
||||
'CanvasGradient': {
|
||||
'canGc': ['AddColorStop'],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue