mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix generation of static JS methods
They now take a global argument.
This commit is contained in:
parent
a3dafe4999
commit
7e7b421db9
2 changed files with 12 additions and 8 deletions
|
@ -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) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue