aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-02-14 16:45:36 +0100
committerMs2ger <Ms2ger@gmail.com>2017-02-16 11:03:26 +0100
commitf7e2f0e641967ba78a0b6b057aec760f9a9ca519 (patch)
treebcc391aba306ce52e66ad1227238c866ad33dba3 /components/script/dom/testbinding.rs
parentf1605ab149032adb20aec667d7660a4e433824e8 (diff)
downloadservo-f7e2f0e641967ba78a0b6b057aec760f9a9ca519.tar.gz
servo-f7e2f0e641967ba78a0b6b057aec760f9a9ca519.zip
Use RootedTraceableBox for dictionaries.
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 677d5c611db..1582647ca33 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -27,6 +27,7 @@ use dom::bindings::num::Finite;
use dom::bindings::refcounted::TrustedPromise;
use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object};
use dom::bindings::str::{ByteString, DOMString, USVString};
+use dom::bindings::trace::RootedTraceableBox;
use dom::bindings::weakref::MutableWeakRef;
use dom::blob::{Blob, BlobImpl};
use dom::globalscope::GlobalScope;
@@ -402,7 +403,7 @@ impl TestBindingMethods for TestBinding {
}
}
- fn DictMatchesPassedValues(&self, arg: &TestDictionary) -> bool {
+ fn DictMatchesPassedValues(&self, arg: RootedTraceableBox<TestDictionary>) -> bool {
arg.type_.as_ref().map(|s| s == "success").unwrap_or(false) &&
arg.nonRequiredNullable.is_none() &&
arg.nonRequiredNullable2 == Some(None)