diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-21 22:53:58 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-25 12:23:39 +0200 |
commit | 7e7b421db9ff15b8a9093cb0a7963b09594986b3 (patch) | |
tree | e6dbea4321fb38d7f7572a01e49e0276474c5de7 /components/script/dom/testbinding.rs | |
parent | a3dafe49999d24e12b2f6b5cc74b468e58b7384a (diff) | |
download | servo-7e7b421db9ff15b8a9093cb0a7963b09594986b3.tar.gz servo-7e7b421db9ff15b8a9093cb0a7963b09594986b3.zip |
Fix generation of static JS methods
They now take a global argument.
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index a4bda4eb817..20451f64648 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -12,7 +12,7 @@ use dom::bindings::codegen::UnionTypes::EventOrString; use dom::bindings::codegen::UnionTypes::EventOrString::eString; use dom::bindings::codegen::UnionTypes::HTMLElementOrLong; use dom::bindings::codegen::UnionTypes::HTMLElementOrLong::eLong; -use dom::bindings::global::GlobalField; +use dom::bindings::global::{GlobalField, GlobalRef}; use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::num::Finite; use dom::bindings::str::{ByteString, USVString}; @@ -361,8 +361,8 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> { } impl TestBinding { - pub fn BooleanAttributeStatic() -> bool { false } - pub fn SetBooleanAttributeStatic(_: bool) {} - pub fn ReceiveVoidStatic() {} + pub fn BooleanAttributeStatic(_: GlobalRef) -> bool { false } + pub fn SetBooleanAttributeStatic(_: GlobalRef, _: bool) {} + pub fn ReceiveVoidStatic(_: GlobalRef) {} } |