diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-09-18 15:23:03 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-09-18 18:07:37 -0700 |
commit | 73c1a12f3014289002bdc637b7f3c3fc6bf0fb0d (patch) | |
tree | d165111723538e4e7550647e6b97262829621368 /src/components/script/dom/htmlobjectelement.rs | |
parent | 4b0680a1362c06b502bd93f056851d01430c3ac0 (diff) | |
download | servo-73c1a12f3014289002bdc637b7f3c3fc6bf0fb0d.tar.gz servo-73c1a12f3014289002bdc637b7f3c3fc6bf0fb0d.zip |
bindings: Return errors in Result rather than setting an out parameter
Fixes #909.
Diffstat (limited to 'src/components/script/dom/htmlobjectelement.rs')
-rw-r--r-- | src/components/script/dom/htmlobjectelement.rs | 52 |
1 files changed, 34 insertions, 18 deletions
diff --git a/src/components/script/dom/htmlobjectelement.rs b/src/components/script/dom/htmlobjectelement.rs index 635d2dfa61c..4400649a90f 100644 --- a/src/components/script/dom/htmlobjectelement.rs +++ b/src/components/script/dom/htmlobjectelement.rs @@ -18,28 +18,32 @@ impl HTMLObjectElement { None } - pub fn SetData(&mut self, _data: &DOMString, _rv: &mut ErrorResult) { + pub fn SetData(&mut self, _data: &DOMString) -> ErrorResult { + Ok(()) } pub fn Type(&self) -> DOMString { None } - pub fn SetType(&mut self, _type: &DOMString, _rv: &mut ErrorResult) { + pub fn SetType(&mut self, _type: &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 UseMap(&self) -> DOMString { None } - pub fn SetUseMap(&mut self, _use_map: &DOMString, _rv: &mut ErrorResult) { + pub fn SetUseMap(&mut self, _use_map: &DOMString) -> ErrorResult { + Ok(()) } pub fn GetForm(&self) -> Option<AbstractNode<ScriptView>> { @@ -50,14 +54,16 @@ impl HTMLObjectElement { None } - pub fn SetWidth(&mut self, _width: &DOMString, _rv: &mut ErrorResult) { + pub fn SetWidth(&mut self, _width: &DOMString) -> ErrorResult { + Ok(()) } pub fn Height(&self) -> DOMString { None } - pub fn SetHeight(&mut self, _height: &DOMString, _rv: &mut ErrorResult) { + pub fn SetHeight(&mut self, _height: &DOMString) -> ErrorResult { + Ok(()) } pub fn GetContentDocument(&self) -> Option<AbstractDocument> { @@ -91,73 +97,83 @@ impl HTMLObjectElement { None } - pub fn SetAlign(&mut self, _align: &DOMString, _rv: &mut ErrorResult) { + pub fn SetAlign(&mut self, _align: &DOMString) -> ErrorResult { + Ok(()) } - pub fn Archive(&self) -> DOMString { + pub fn Archive(&self) -> DOMString { None } - pub fn SetArchive(&mut self, _archive: &DOMString, _rv: &mut ErrorResult) { + pub fn SetArchive(&mut self, _archive: &DOMString) -> ErrorResult { + Ok(()) } pub fn Code(&self) -> DOMString { None } - pub fn SetCode(&mut self, _code: &DOMString, _rv: &mut ErrorResult) { + pub fn SetCode(&mut self, _code: &DOMString) -> ErrorResult { + Ok(()) } pub fn Declare(&self) -> bool { false } - pub fn SetDeclare(&mut self, _declare: bool, _rv: &mut ErrorResult) { + pub fn SetDeclare(&mut self, _declare: bool) -> ErrorResult { + Ok(()) } pub fn Hspace(&self) -> u32 { 0 } - pub fn SetHspace(&mut self, _hspace: u32, _rv: &mut ErrorResult) { + pub fn SetHspace(&mut self, _hspace: u32) -> ErrorResult { + Ok(()) } pub fn Standby(&self) -> DOMString { None } - pub fn SetStandby(&mut self, _standby: &DOMString, _rv: &mut ErrorResult) { + pub fn SetStandby(&mut self, _standby: &DOMString) -> ErrorResult { + Ok(()) } pub fn Vspace(&self) -> u32 { 0 } - pub fn SetVspace(&mut self, _vspace: u32, _rv: &mut ErrorResult) { + pub fn SetVspace(&mut self, _vspace: u32) -> ErrorResult { + Ok(()) } pub fn CodeBase(&self) -> DOMString { None } - pub fn SetCodeBase(&mut self, _codebase: &DOMString, _rv: &mut ErrorResult) { + pub fn SetCodeBase(&mut self, _codebase: &DOMString) -> ErrorResult { + Ok(()) } pub fn CodeType(&self) -> DOMString { None } - pub fn SetCodeType(&mut self, _codetype: &DOMString, _rv: &mut ErrorResult) { + pub fn SetCodeType(&mut self, _codetype: &DOMString) -> ErrorResult { + Ok(()) } pub fn Border(&self) -> DOMString { None } - pub fn SetBorder(&mut self, _border: &DOMString, _rv: &mut ErrorResult) { + pub fn SetBorder(&mut self, _border: &DOMString) -> ErrorResult { + Ok(()) } pub fn GetSVGDocument(&self) -> Option<AbstractDocument> { None } -}
\ No newline at end of file +} |