diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-18 19:12:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 13:42:43 +0000 |
commit | af6154cf630bd498f8b5afbd8a321eb4a45463b6 (patch) | |
tree | 364dcf5c2d2cfd247716eed34bc04d0aa136c263 /components/script/dom/xrjointpose.rs | |
parent | fde8d72acabb6f8314efe0e66312c02a488a7613 (diff) | |
download | servo-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/xrjointpose.rs')
-rw-r--r-- | components/script/dom/xrjointpose.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/xrjointpose.rs b/components/script/dom/xrjointpose.rs index df5e5a689e7..9a3e60bab33 100644 --- a/components/script/dom/xrjointpose.rs +++ b/components/script/dom/xrjointpose.rs @@ -12,6 +12,7 @@ use crate::dom::globalscope::GlobalScope; use crate::dom::xrpose::XRPose; use crate::dom::xrrigidtransform::XRRigidTransform; use crate::dom::xrsession::ApiRigidTransform; +use crate::script_runtime::CanGc; #[dom_struct] pub struct XRJointPose { @@ -32,8 +33,9 @@ impl XRJointPose { global: &GlobalScope, pose: ApiRigidTransform, radius: Option<f32>, + can_gc: CanGc, ) -> DomRoot<XRJointPose> { - let transform = XRRigidTransform::new(global, pose); + let transform = XRRigidTransform::new(global, pose, can_gc); reflect_dom_object( Box::new(XRJointPose::new_inherited(&transform, radius)), global, |