aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorMichael Booth <michaelboothj@gmail.com>2014-11-27 20:44:41 +0000
committerMichael Booth <michaelboothj@gmail.com>2014-11-30 19:47:52 +0000
commit2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1 (patch)
tree0bd3db5aa9c9e3b91715c3d067721960d342ef77 /components/script/dom/testbinding.rs
parent9cea3ce2661e68bae5400164b72930e4c5eeae55 (diff)
downloadservo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.tar.gz
servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.zip
Updated reflect_dom_object to be passed by value
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 9101cbf4356..47bc333475b 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -57,7 +57,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn SetEnumAttribute(self, _: TestEnum) {}
fn InterfaceAttribute(self) -> Temporary<Blob> {
let global = self.global.root();
- Blob::new(&global.root_ref())
+ Blob::new(global.root_ref())
}
fn SetInterfaceAttribute(self, _: JSRef<Blob>) {}
fn UnionAttribute(self) -> HTMLElementOrLong { eLong(0) }
@@ -96,7 +96,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn GetEnumAttributeNullable(self) -> Option<TestEnum> { Some(_empty) }
fn GetInterfaceAttributeNullable(self) -> Option<Temporary<Blob>> {
let global = self.global.root();
- Some(Blob::new(&global.root_ref()))
+ Some(Blob::new(global.root_ref()))
}
fn SetInterfaceAttributeNullable(self, _: Option<JSRef<Blob>>) {}
fn GetUnionAttributeNullable(self) -> Option<HTMLElementOrLong> { Some(eLong(0)) }
@@ -120,7 +120,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn ReceiveEnum(self) -> TestEnum { _empty }
fn ReceiveInterface(self) -> Temporary<Blob> {
let global = self.global.root();
- Blob::new(&global.root_ref())
+ Blob::new(global.root_ref())
}
fn ReceiveAny(self, _: *mut JSContext) -> JSVal { NullValue() }
fn ReceiveUnion(self) -> HTMLElementOrLong { eLong(0) }
@@ -142,7 +142,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn ReceiveNullableEnum(self) -> Option<TestEnum> { Some(_empty) }
fn ReceiveNullableInterface(self) -> Option<Temporary<Blob>> {
let global = self.global.root();
- Some(Blob::new(&global.root_ref()))
+ Some(Blob::new(global.root_ref()))
}
fn ReceiveNullableUnion(self) -> Option<HTMLElementOrLong> { Some(eLong(0)) }
fn ReceiveNullableUnion2(self) -> Option<EventOrString> { Some(eString("".to_string())) }