Consistently use GlobalScope in XR code

This commit is contained in:
Manish Goregaokar 2019-04-03 11:30:18 -07:00
parent f7745edcbb
commit fcec93ae16
6 changed files with 18 additions and 18 deletions

View file

@ -115,15 +115,12 @@ impl XRSessionMethods for XRSession {
match options.type_ {
XRReferenceSpaceType::Identity => {
p.resolve_native(&XRReferenceSpace::identity(
&self.global().as_window(),
self,
));
p.resolve_native(&XRReferenceSpace::identity(&self.global(), self));
},
XRReferenceSpaceType::Stationary => {
if let Some(subtype) = options.subtype {
p.resolve_native(&XRStationaryReferenceSpace::new(
&self.global().as_window(),
&self.global(),
self,
subtype,
));