diff options
author | Aron Zwaan <aronzwaan@gmail.com> | 2019-04-24 22:33:16 +0200 |
---|---|---|
committer | Aron Zwaan <aronzwaan@gmail.com> | 2019-04-25 11:37:35 +0200 |
commit | e2e6e2ac9428b9448edb06f7f11b201ce68e7191 (patch) | |
tree | 1ad0b3a8647d2946bf9a0b5ff427f1d8c1e6cf29 /components/script/dom/document.rs | |
parent | 1b6949d4cf951600efa6db6747b65e2db42a96cd (diff) | |
download | servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.tar.gz servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.zip |
Pass InCompartment by value
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 7d4950caa66..4fec01bd38c 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3135,7 +3135,7 @@ impl Document { let in_compartment_proof = AlreadyInCompartment::assert(&self.global()); let promise = Promise::new_in_current_compartment( &self.global(), - &InCompartment::Already(&in_compartment_proof), + InCompartment::Already(&in_compartment_proof), ); let mut error = false; @@ -3206,7 +3206,7 @@ impl Document { let in_compartment_proof = AlreadyInCompartment::assert(&global); let promise = Promise::new_in_current_compartment( &global, - &InCompartment::Already(&in_compartment_proof), + InCompartment::Already(&in_compartment_proof), ); // Step 2 if self.fullscreen_element.get().is_none() { |