Make the traits for the IDL interfaces take &self

This commit is contained in:
Anthony Ramine 2015-08-27 22:15:54 +02:00
parent 856fda7f2e
commit 709d347872
99 changed files with 1192 additions and 1192 deletions

View file

@ -14,21 +14,21 @@ pub struct TestBindingProxy {
reflector_: Reflector
}
impl<'a> TestBindingProxyMethods for &'a TestBindingProxy {
fn Length(self) -> u32 {0}
fn SupportedPropertyNames(self) -> Vec<DOMString> {vec![]}
fn GetNamedItem(self, _: DOMString) -> DOMString {"".to_owned()}
fn SetNamedItem(self, _: DOMString, _: DOMString) -> () {}
fn GetItem(self, _: u32) -> DOMString {"".to_owned()}
fn SetItem(self, _: u32, _: DOMString) -> () {}
fn RemoveItem(self, _: DOMString) -> () {}
fn Stringifier(self) -> DOMString {"".to_owned()}
fn NamedCreator(self, _: DOMString, _: DOMString) -> () {}
fn IndexedGetter(self, _: u32, _: &mut bool) -> DOMString {"".to_owned()}
fn NamedDeleter(self, _: DOMString) -> () {}
fn IndexedSetter(self, _: u32, _: DOMString) -> () {}
fn NamedSetter(self, _: DOMString, _: DOMString) -> () {}
fn IndexedCreator(self, _: u32, _: DOMString) -> () {}
fn NamedGetter(self, _: DOMString, _: &mut bool) -> DOMString {"".to_owned()}
impl TestBindingProxyMethods for TestBindingProxy {
fn Length(&self) -> u32 {0}
fn SupportedPropertyNames(&self) -> Vec<DOMString> {vec![]}
fn GetNamedItem(&self, _: DOMString) -> DOMString {"".to_owned()}
fn SetNamedItem(&self, _: DOMString, _: DOMString) -> () {}
fn GetItem(&self, _: u32) -> DOMString {"".to_owned()}
fn SetItem(&self, _: u32, _: DOMString) -> () {}
fn RemoveItem(&self, _: DOMString) -> () {}
fn Stringifier(&self) -> DOMString {"".to_owned()}
fn NamedCreator(&self, _: DOMString, _: DOMString) -> () {}
fn IndexedGetter(&self, _: u32, _: &mut bool) -> DOMString {"".to_owned()}
fn NamedDeleter(&self, _: DOMString) -> () {}
fn IndexedSetter(&self, _: u32, _: DOMString) -> () {}
fn NamedSetter(&self, _: DOMString, _: DOMString) -> () {}
fn IndexedCreator(&self, _: u32, _: DOMString) -> () {}
fn NamedGetter(&self, _: DOMString, _: &mut bool) -> DOMString {"".to_owned()}
}