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

@ -14,41 +14,47 @@ impl HTMLBodyElement {
None
}
pub fn SetText(&mut self, _text: &DOMString, _rv: &mut ErrorResult) {
pub fn SetText(&mut self, _text: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Link(&self) -> DOMString {
None
}
pub fn SetLink(&self, _link: &DOMString, _rv: &mut ErrorResult) {
pub fn SetLink(&self, _link: &DOMString) -> ErrorResult {
Ok(())
}
pub fn VLink(&self) -> DOMString {
None
}
pub fn SetVLink(&self, _v_link: &DOMString, _rv: &mut ErrorResult) {
pub fn SetVLink(&self, _v_link: &DOMString) -> ErrorResult {
Ok(())
}
pub fn ALink(&self) -> DOMString {
None
}
pub fn SetALink(&self, _a_link: &DOMString, _rv: &mut ErrorResult) {
pub fn SetALink(&self, _a_link: &DOMString) -> ErrorResult {
Ok(())
}
pub fn BgColor(&self) -> DOMString {
None
}
pub fn SetBgColor(&self, _bg_color: &DOMString, _rv: &mut ErrorResult) {
pub fn SetBgColor(&self, _bg_color: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Background(&self) -> DOMString {
None
}
pub fn SetBackground(&self, _background: &DOMString, _rv: &mut ErrorResult) {
pub fn SetBackground(&self, _background: &DOMString) -> ErrorResult {
Ok(())
}
}