mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -35,6 +35,7 @@ impl ConstantSourceNode {
|
|||
window: &Window,
|
||||
context: &BaseAudioContext,
|
||||
options: &ConstantSourceOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<ConstantSourceNode> {
|
||||
let node_options = Default::default();
|
||||
let source_node = AudioScheduledSourceNode::new_inherited(
|
||||
|
@ -55,7 +56,7 @@ impl ConstantSourceNode {
|
|||
*options.offset,
|
||||
f32::MIN,
|
||||
f32::MAX,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
);
|
||||
|
||||
Ok(ConstantSourceNode {
|
||||
|
@ -81,7 +82,7 @@ impl ConstantSourceNode {
|
|||
options: &ConstantSourceOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<DomRoot<ConstantSourceNode>> {
|
||||
let node = ConstantSourceNode::new_inherited(window, context, options)?;
|
||||
let node = ConstantSourceNode::new_inherited(window, context, options, can_gc)?;
|
||||
Ok(reflect_dom_object_with_proto(
|
||||
Box::new(node),
|
||||
window,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue