mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Pass InCompartment by value
This commit is contained in:
parent
1b6949d4cf
commit
e2e6e2ac94
26 changed files with 52 additions and 50 deletions
|
@ -94,7 +94,7 @@ impl XRSessionMethods for XRSession {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
self.display.queue_renderstate(init, p.clone());
|
||||
p
|
||||
|
@ -120,7 +120,7 @@ impl XRSessionMethods for XRSession {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
|
||||
// https://immersive-web.github.io/webxr/#create-a-reference-space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue