CanGc fixes originating from gamepadevent.rs & stereopannernode.rs (#33828)

* CanGc fixes originating from gamepadevent.rs & stereopannernode.rs

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>

* Revert changes within task! macro

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>

---------

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-14 18:52:08 +05:30 committed by GitHub
parent 2322b22a6b
commit cfd15dd14d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 14 deletions

View file

@ -78,8 +78,9 @@ impl StereoPannerNode {
window: &Window,
context: &BaseAudioContext,
options: &StereoPannerOptions,
can_gc: CanGc,
) -> Fallible<DomRoot<StereoPannerNode>> {
Self::new_with_proto(window, None, context, options, CanGc::note())
Self::new_with_proto(window, None, context, options, can_gc)
}
#[allow(crown::unrooted_must_root)]