aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/audiocontext.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-16 19:48:07 +0530
committerGitHub <noreply@github.com>2024-10-16 14:18:07 +0000
commit2b9527262c5700473af6fb2b193f84596bedc0de (patch)
treee80858021f910cd0bb6e7ce8e1a6116a18693747 /components/script/dom/audiocontext.rs
parent5148b444be5490d0fd9123d7248216856efd568d (diff)
downloadservo-2b9527262c5700473af6fb2b193f84596bedc0de.tar.gz
servo-2b9527262c5700473af6fb2b193f84596bedc0de.zip
CanGc fixes in components/script/dom (#33862)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/audiocontext.rs')
-rw-r--r--components/script/dom/audiocontext.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/audiocontext.rs b/components/script/dom/audiocontext.rs
index f543260b7f0..620c8f754b8 100644
--- a/components/script/dom/audiocontext.rs
+++ b/components/script/dom/audiocontext.rs
@@ -276,20 +276,22 @@ impl AudioContextMethods for AudioContext {
fn CreateMediaStreamSource(
&self,
stream: &MediaStream,
+ can_gc: CanGc,
) -> Fallible<DomRoot<MediaStreamAudioSourceNode>> {
let global = self.global();
let window = global.as_window();
- MediaStreamAudioSourceNode::new(window, self, stream)
+ MediaStreamAudioSourceNode::new(window, self, stream, can_gc)
}
/// <https://webaudio.github.io/web-audio-api/#dom-audiocontext-createmediastreamtracksource>
fn CreateMediaStreamTrackSource(
&self,
track: &MediaStreamTrack,
+ can_gc: CanGc,
) -> Fallible<DomRoot<MediaStreamTrackAudioSourceNode>> {
let global = self.global();
let window = global.as_window();
- MediaStreamTrackAudioSourceNode::new(window, self, track)
+ MediaStreamTrackAudioSourceNode::new(window, self, track, can_gc)
}
/// <https://webaudio.github.io/web-audio-api/#dom-audiocontext-createmediastreamdestination>