mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
refactor: add CanGc as argument to CountQueuingStrategy::GetSize (#35595)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
a741c48dc2
commit
d72c9f3501
2 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,7 @@ impl CountQueuingStrategyMethods<crate::DomTypeHolder> for CountQueuingStrategy
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://streams.spec.whatwg.org/#cqs-size>
|
/// <https://streams.spec.whatwg.org/#cqs-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 count queuing strategy
|
// Return this's relevant global object's count queuing strategy
|
||||||
// size function.
|
// size function.
|
||||||
|
|
|
@ -82,6 +82,10 @@ DOMInterfaces = {
|
||||||
'canGc': ['Before', 'After', 'ReplaceWith']
|
'canGc': ['Before', 'After', 'ReplaceWith']
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'CountQueuingStrategy': {
|
||||||
|
'canGc': ['GetSize'],
|
||||||
|
},
|
||||||
|
|
||||||
'CSSStyleDeclaration': {
|
'CSSStyleDeclaration': {
|
||||||
'canGc': ['RemoveProperty', 'SetCssText', 'GetPropertyValue', 'SetProperty', 'CssFloat', 'SetCssFloat']
|
'canGc': ['RemoveProperty', 'SetCssText', 'GetPropertyValue', 'SetProperty', 'CssFloat', 'SetCssFloat']
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue