refactor: propagate CanGc arguments through callers (#35591)

Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
Auguste Baum 2025-02-23 01:34:51 +01:00 committed by GitHub
parent 02199520f2
commit b0b0289014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 403 additions and 275 deletions

View file

@ -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,