aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-09-18 15:23:03 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-09-18 18:07:37 -0700
commit73c1a12f3014289002bdc637b7f3c3fc6bf0fb0d (patch)
treed165111723538e4e7550647e6b97262829621368 /src/components/script/dom/htmltableelement.rs
parent4b0680a1362c06b502bd93f056851d01430c3ac0 (diff)
downloadservo-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/htmltableelement.rs')
-rw-r--r--src/components/script/dom/htmltableelement.rs30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/components/script/dom/htmltableelement.rs b/src/components/script/dom/htmltableelement.rs
index 5e322edb02d..d098b7f070c 100644
--- a/src/components/script/dom/htmltableelement.rs
+++ b/src/components/script/dom/htmltableelement.rs
@@ -20,7 +20,8 @@ impl HTMLTableElement {
pub fn DeleteTFoot(&self) {
}
- pub fn DeleteRow(&mut self, _index: i32, _rv: &mut ErrorResult) {
+ pub fn DeleteRow(&mut self, _index: i32) -> ErrorResult {
+ Ok(())
}
pub fn Sortable(&self) -> bool {
@@ -37,62 +38,71 @@ impl HTMLTableElement {
None
}
- pub fn SetAlign(&self, _align: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetAlign(&self, _align: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn Border(&self) -> DOMString {
None
}
- pub fn SetBorder(&self, _border: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetBorder(&self, _border: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn Frame(&self) -> DOMString {
None
}
- pub fn SetFrame(&self, _frame: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetFrame(&self, _frame: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn Rules(&self) -> DOMString {
None
}
- pub fn SetRules(&self, _rules: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetRules(&self, _rules: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn Summary(&self) -> DOMString {
None
}
- pub fn SetSummary(&self, _summary: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetSummary(&self, _summary: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn Width(&self) -> DOMString {
None
}
- pub fn SetWidth(&self, _width: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetWidth(&self, _width: &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 CellPadding(&self) -> DOMString {
None
}
- pub fn SetCellPadding(&self, _cell_padding: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetCellPadding(&self, _cell_padding: &DOMString) -> ErrorResult {
+ Ok(())
}
pub fn CellSpacing(&self) -> DOMString {
None
}
- pub fn SetCellSpacing(&self, _cell_spacing: &DOMString, _rv: &mut ErrorResult) {
+ pub fn SetCellSpacing(&self, _cell_spacing: &DOMString) -> ErrorResult {
+ Ok(())
}
}