mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Consistently use GlobalScope in XR code
This commit is contained in:
parent
f7745edcbb
commit
fcec93ae16
6 changed files with 18 additions and 18 deletions
|
@ -27,7 +27,7 @@ impl XRPose {
|
|||
|
||||
#[allow(unused)]
|
||||
pub fn new(global: &GlobalScope, transform: RigidTransform3D<f64>) -> DomRoot<XRPose> {
|
||||
let transform = XRRigidTransform::new(&global.as_window(), transform);
|
||||
let transform = XRRigidTransform::new(global, transform);
|
||||
reflect_dom_object(
|
||||
Box::new(XRPose::new_inherited(&transform)),
|
||||
global,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue