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/htmlscriptelement.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/htmlscriptelement.rs')
-rw-r--r-- | src/components/script/dom/htmlscriptelement.rs | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/components/script/dom/htmlscriptelement.rs b/src/components/script/dom/htmlscriptelement.rs index 18d28967893..ca6debddb34 100644 --- a/src/components/script/dom/htmlscriptelement.rs +++ b/src/components/script/dom/htmlscriptelement.rs @@ -14,62 +14,71 @@ impl HTMLScriptElement { None } - pub fn SetSrc(&mut self, _src: &DOMString, _rv: &mut ErrorResult) { + pub fn SetSrc(&mut self, _src: &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 Charset(&self) -> DOMString { None } - pub fn SetCharset(&mut self, _charset: &DOMString, _rv: &mut ErrorResult) { + pub fn SetCharset(&mut self, _charset: &DOMString) -> ErrorResult { + Ok(()) } pub fn Async(&self) -> bool { false } - pub fn SetAsync(&self, _async: bool, _rv: &mut ErrorResult) { + pub fn SetAsync(&self, _async: bool) -> ErrorResult { + Ok(()) } pub fn Defer(&self) -> bool { false } - pub fn SetDefer(&self, _defer: bool, _rv: &mut ErrorResult) { + pub fn SetDefer(&self, _defer: bool) -> ErrorResult { + Ok(()) } pub fn CrossOrigin(&self) -> DOMString { None } - pub fn SetCrossOrigin(&mut self, _cross_origin: &DOMString, _rv: &mut ErrorResult) { + pub fn SetCrossOrigin(&mut self, _cross_origin: &DOMString) -> ErrorResult { + Ok(()) } pub fn Text(&self) -> DOMString { None } - pub fn SetText(&mut self, _text: &DOMString, _rv: &mut ErrorResult) { + pub fn SetText(&mut self, _text: &DOMString) -> ErrorResult { + Ok(()) } pub fn Event(&self) -> DOMString { None } - pub fn SetEvent(&mut self, _event: &DOMString, _rv: &mut ErrorResult) { + pub fn SetEvent(&mut self, _event: &DOMString) -> ErrorResult { + Ok(()) } pub fn HtmlFor(&self) -> DOMString { None } - pub fn SetHtmlFor(&mut self, _html_for: &DOMString, _rv: &mut ErrorResult) { + pub fn SetHtmlFor(&mut self, _html_for: &DOMString) -> ErrorResult { + Ok(()) } } |