bindings: Return errors in Result rather than setting an out parameter

Fixes #909.
This commit is contained in:
Keegan McAllister 2013-09-18 15:23:03 -07:00
parent 4b0680a136
commit 73c1a12f30
73 changed files with 891 additions and 550 deletions

View file

@ -28,63 +28,72 @@ impl HTMLFormElement {
None
}
pub fn SetAcceptCharset(&mut self, _accept_charset: &DOMString, _rv: &mut ErrorResult) {
pub fn SetAcceptCharset(&mut self, _accept_charset: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Action(&self) -> DOMString {
None
}
pub fn SetAction(&mut self, _action: &DOMString, _rv: &mut ErrorResult) {
pub fn SetAction(&mut self, _action: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Autocomplete(&self) -> DOMString {
None
}
pub fn SetAutocomplete(&mut self, _autocomplete: &DOMString, _rv: &mut ErrorResult) {
pub fn SetAutocomplete(&mut self, _autocomplete: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Enctype(&self) -> DOMString {
None
}
pub fn SetEnctype(&mut self, _enctype: &DOMString, _rv: &mut ErrorResult) {
pub fn SetEnctype(&mut self, _enctype: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Encoding(&self) -> DOMString {
None
}
pub fn SetEncoding(&mut self, _encoding: &DOMString, _rv: &mut ErrorResult) {
pub fn SetEncoding(&mut self, _encoding: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Method(&self) -> DOMString {
None
}
pub fn SetMethod(&mut self, _method: &DOMString, _rv: &mut ErrorResult) {
pub fn SetMethod(&mut self, _method: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Name(&self) -> DOMString {
None
}
pub fn SetName(&mut self, _name: &DOMString, _rv: &mut ErrorResult) {
pub fn SetName(&mut self, _name: &DOMString) -> ErrorResult {
Ok(())
}
pub fn NoValidate(&self) -> bool {
false
}
pub fn SetNoValidate(&mut self, _no_validate: bool, _rv: &mut ErrorResult) {
pub fn SetNoValidate(&mut self, _no_validate: bool) -> ErrorResult {
Ok(())
}
pub fn Target(&self) -> DOMString {
None
}
pub fn SetTarget(&mut self, _target: &DOMString, _rv: &mut ErrorResult) {
pub fn SetTarget(&mut self, _target: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Elements(&self) -> @mut HTMLCollection {
@ -96,7 +105,8 @@ impl HTMLFormElement {
0
}
pub fn Submit(&self, _rv: &mut ErrorResult) {
pub fn Submit(&self) -> ErrorResult {
Ok(())
}
pub fn Reset(&self) {