aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2019-05-25 14:43:44 +0200
committerBastien Orivel <eijebong@bananium.fr>2019-05-25 14:43:44 +0200
commit0b29caa5548b0e307f2a891f5082b940c10d5762 (patch)
tree28824723cefcdf48921f9b98cc947b7abe50a070 /components/script/dom/testbinding.rs
parent7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad (diff)
downloadservo-0b29caa5548b0e307f2a891f5082b940c10d5762.tar.gz
servo-0b29caa5548b0e307f2a891f5082b940c10d5762.zip
Add support for attributes to the inCompartments binding parameter
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 99e294e75e9..d048c07415c 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -1048,11 +1048,10 @@ impl TestBindingMethods for TestBinding {
}
}
- fn PromiseAttribute(&self) -> Rc<Promise> {
- let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
+ fn PromiseAttribute(&self, comp: InCompartment) -> Rc<Promise> {
Promise::new_in_current_compartment(
&self.global(),
- InCompartment::Already(&in_compartment_proof),
+ comp
)
}