mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
bindings: Return errors in Result rather than setting an out parameter
Fixes #909.
This commit is contained in:
parent
4b0680a136
commit
73c1a12f30
73 changed files with 891 additions and 550 deletions
|
@ -10,34 +10,39 @@ pub struct HTMLTableSectionElement {
|
|||
}
|
||||
|
||||
impl HTMLTableSectionElement {
|
||||
pub fn DeleteRow(&mut self, _index: i32, _rv: &mut ErrorResult) {
|
||||
pub fn DeleteRow(&mut self, _index: i32) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Align(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetAlign(&mut self, _align: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetAlign(&mut self, _align: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Ch(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetCh(&mut self, _ch: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetCh(&mut self, _ch: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn ChOff(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetChOff(&mut self, _ch_off: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetChOff(&mut self, _ch_off: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn VAlign(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetVAlign(&mut self, _v_align: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetVAlign(&mut self, _v_align: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue