aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webxr/xrframe.rs
diff options
context:
space:
mode:
authorAuguste Baum <52001167+augustebaum@users.noreply.github.com>2025-02-20 17:17:45 +0100
committerGitHub <noreply@github.com>2025-02-20 16:17:45 +0000
commit863d2ce8710fc5141b2c8fd0743697c0956412cb (patch)
tree05d3f853fa53b38a359427ac3d9ff19b7bc75db6 /components/script/dom/webxr/xrframe.rs
parent5465bfc2af38e561df5f0a7f81250a0238520d6d (diff)
downloadservo-863d2ce8710fc5141b2c8fd0743697c0956412cb.tar.gz
servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.zip
Propagate `CanGc` arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/webxr/xrframe.rs')
-rw-r--r--components/script/dom/webxr/xrframe.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/components/script/dom/webxr/xrframe.rs b/components/script/dom/webxr/xrframe.rs
index 05c44f78619..ef97919b998 100644
--- a/components/script/dom/webxr/xrframe.rs
+++ b/components/script/dom/webxr/xrframe.rs
@@ -49,11 +49,16 @@ impl XRFrame {
}
}
- pub(crate) fn new(global: &GlobalScope, session: &XRSession, data: Frame) -> DomRoot<XRFrame> {
+ pub(crate) fn new(
+ global: &GlobalScope,
+ session: &XRSession,
+ data: Frame,
+ can_gc: CanGc,
+ ) -> DomRoot<XRFrame> {
reflect_dom_object(
Box::new(XRFrame::new_inherited(session, data)),
global,
- CanGc::note(),
+ can_gc,
)
}
@@ -193,7 +198,7 @@ impl XRFrameMethods<crate::DomTypeHolder> for XRFrame {
.hit_test_results
.iter()
.filter(|r| r.id == source.id())
- .map(|r| XRHitTestResult::new(&self.global(), *r, self))
+ .map(|r| XRHitTestResult::new(&self.global(), *r, self, CanGc::note()))
.collect()
}