aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/animationevent.rs
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-14 03:05:59 +0530
committerGitHub <noreply@github.com>2024-10-13 21:35:59 +0000
commitfc0835bae3dc28b17e6002e0594d6112517ff61d (patch)
treeab06cf48acc57f451ad75ae8a4d384e51b3dff83 /components/script/dom/animationevent.rs
parent92f12ff7cda3d3da667d2358ab3867b1dcc5b9a2 (diff)
downloadservo-fc0835bae3dc28b17e6002e0594d6112517ff61d.tar.gz
servo-fc0835bae3dc28b17e6002e0594d6112517ff61d.zip
CanGc fixes in focusevent.rs oscillartornode.rs response.rs resizeobserversize.rs animationevent.rs (#33827)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/animationevent.rs')
-rw-r--r--components/script/dom/animationevent.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/animationevent.rs b/components/script/dom/animationevent.rs
index 408b252bb45..c3a8655c496 100644
--- a/components/script/dom/animationevent.rs
+++ b/components/script/dom/animationevent.rs
@@ -38,8 +38,13 @@ impl AnimationEvent {
}
}
- pub fn new(window: &Window, type_: Atom, init: &AnimationEventInit) -> DomRoot<AnimationEvent> {
- Self::new_with_proto(window, None, type_, init, CanGc::note())
+ pub fn new(
+ window: &Window,
+ type_: Atom,
+ init: &AnimationEventInit,
+ can_gc: CanGc,
+ ) -> DomRoot<AnimationEvent> {
+ Self::new_with_proto(window, None, type_, init, can_gc)
}
fn new_with_proto(