Some CanGc fixes in components/script/dom (#33895)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-18 17:22:37 +05:30 committed by GitHub
parent e33bae6d0a
commit 6b87ecc291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 15 deletions

View file

@ -40,16 +40,9 @@ impl RTCTrackEvent {
bubbles: bool,
cancelable: bool,
track: &MediaStreamTrack,
can_gc: CanGc,
) -> DomRoot<RTCTrackEvent> {
Self::new_with_proto(
global,
None,
type_,
bubbles,
cancelable,
track,
CanGc::note(),
)
Self::new_with_proto(global, None, type_, bubbles, cancelable, track, can_gc)
}
fn new_with_proto(