aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrpose.rs
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-18 19:12:43 +0530
committerGitHub <noreply@github.com>2024-10-18 13:42:43 +0000
commitaf6154cf630bd498f8b5afbd8a321eb4a45463b6 (patch)
tree364dcf5c2d2cfd247716eed34bc04d0aa136c263 /components/script/dom/xrpose.rs
parentfde8d72acabb6f8314efe0e66312c02a488a7613 (diff)
downloadservo-af6154cf630bd498f8b5afbd8a321eb4a45463b6.tar.gz
servo-af6154cf630bd498f8b5afbd8a321eb4a45463b6.zip
More files with CanGc fixes (#33892)
* More files with CanGc fixes Signed-off-by: L Ashwin B <lashwinib@gmail.com> * removed the can_gc inside !task Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/xrpose.rs')
-rw-r--r--components/script/dom/xrpose.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/xrpose.rs b/components/script/dom/xrpose.rs
index 991e5217bd1..be82e52c1a6 100644
--- a/components/script/dom/xrpose.rs
+++ b/components/script/dom/xrpose.rs
@@ -11,6 +11,7 @@ use crate::dom::dompointreadonly::DOMPointReadOnly;
use crate::dom::globalscope::GlobalScope;
use crate::dom::xrrigidtransform::XRRigidTransform;
use crate::dom::xrsession::ApiRigidTransform;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct XRPose {
@@ -27,8 +28,12 @@ impl XRPose {
}
#[allow(unused)]
- pub fn new(global: &GlobalScope, transform: ApiRigidTransform) -> DomRoot<XRPose> {
- let transform = XRRigidTransform::new(global, transform);
+ pub fn new(
+ global: &GlobalScope,
+ transform: ApiRigidTransform,
+ can_gc: CanGc,
+ ) -> DomRoot<XRPose> {
+ let transform = XRRigidTransform::new(global, transform, can_gc);
reflect_dom_object(Box::new(XRPose::new_inherited(&transform)), global)
}
}