mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +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
|
@ -48,6 +48,7 @@ impl AudioBufferSourceNode {
|
|||
window: &Window,
|
||||
context: &BaseAudioContext,
|
||||
options: &AudioBufferSourceOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<AudioBufferSourceNode> {
|
||||
let node_options = Default::default();
|
||||
let source_node = AudioScheduledSourceNode::new_inherited(
|
||||
|
@ -68,7 +69,7 @@ impl AudioBufferSourceNode {
|
|||
*options.playbackRate,
|
||||
f32::MIN,
|
||||
f32::MAX,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
);
|
||||
let detune = AudioParam::new(
|
||||
window,
|
||||
|
@ -80,7 +81,7 @@ impl AudioBufferSourceNode {
|
|||
*options.detune,
|
||||
f32::MIN,
|
||||
f32::MAX,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
);
|
||||
let node = AudioBufferSourceNode {
|
||||
source_node,
|
||||
|
@ -115,7 +116,7 @@ impl AudioBufferSourceNode {
|
|||
options: &AudioBufferSourceOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<DomRoot<AudioBufferSourceNode>> {
|
||||
let node = AudioBufferSourceNode::new_inherited(window, context, options)?;
|
||||
let node = AudioBufferSourceNode::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