mirror of
https://github.com/servo/servo.git
synced 2025-06-18 21:34:30 +00: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>
|
||||
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 count queuing strategy
|
||||
// size function.
|
||||
|
|
|
@ -82,6 +82,10 @@ DOMInterfaces = {
|
|||
'canGc': ['Before', 'After', 'ReplaceWith']
|
||||
},
|
||||
|
||||
'CountQueuingStrategy': {
|
||||
'canGc': ['GetSize'],
|
||||
},
|
||||
|
||||
'CSSStyleDeclaration': {
|
||||
'canGc': ['RemoveProperty', 'SetCssText', 'GetPropertyValue', 'SetProperty', 'CssFloat', 'SetCssFloat']
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue