CanGc fixes in components/script/dom (#33880)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-17 18:19:00 +05:30 committed by GitHub
parent 72ff89620b
commit cd7b66be58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 59 additions and 33 deletions

View file

@ -46,8 +46,9 @@ impl RTCPeerConnectionIceEvent {
candidate: Option<&RTCIceCandidate>,
url: Option<DOMString>,
trusted: bool,
can_gc: CanGc,
) -> DomRoot<RTCPeerConnectionIceEvent> {
Self::new_with_proto(global, None, ty, candidate, url, trusted, CanGc::note())
Self::new_with_proto(global, None, ty, candidate, url, trusted, can_gc)
}
fn new_with_proto(