diff options
Diffstat (limited to 'components/script/dom/webxr/xrinputsource.rs')
-rw-r--r-- | components/script/dom/webxr/xrinputsource.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webxr/xrinputsource.rs b/components/script/dom/webxr/xrinputsource.rs index 53f48d92d09..d4d8cef9799 100644 --- a/components/script/dom/webxr/xrinputsource.rs +++ b/components/script/dom/webxr/xrinputsource.rs @@ -145,7 +145,7 @@ impl XRInputSourceMethods<crate::DomTypeHolder> for XRInputSource { fn TargetRaySpace(&self) -> DomRoot<XRSpace> { self.target_ray_space.or_init(|| { let global = self.global(); - XRSpace::new_inputspace(&global, &self.session, self, false) + XRSpace::new_inputspace(&global, &self.session, self, false, CanGc::note()) }) } @@ -154,7 +154,7 @@ impl XRInputSourceMethods<crate::DomTypeHolder> for XRInputSource { if self.info.supports_grip { Some(self.grip_space.or_init(|| { let global = self.global(); - XRSpace::new_inputspace(&global, &self.session, self, true) + XRSpace::new_inputspace(&global, &self.session, self, true, CanGc::note()) })) } else { None @@ -181,7 +181,7 @@ impl XRInputSourceMethods<crate::DomTypeHolder> for XRInputSource { fn GetHand(&self) -> Option<DomRoot<XRHand>> { self.info.hand_support.as_ref().map(|hand| { self.hand - .or_init(|| XRHand::new(&self.global(), self, hand.clone())) + .or_init(|| XRHand::new(&self.global(), self, hand.clone(), CanGc::note())) }) } } |