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/htmlmediaelement.rs | |
parent | 1b6949d4cf951600efa6db6747b65e2db42a96cd (diff) | |
download | servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.tar.gz servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.zip |
Pass InCompartment by value
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 252755cb64e..aeba3794310 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -1688,7 +1688,7 @@ impl HTMLMediaElementMethods for HTMLMediaElement { 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), ); // Step 1. // FIXME(nox): Reject promise if not allowed to play. |