mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +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
|
@ -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,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue