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
|
@ -14,34 +14,39 @@ impl HTMLHRElement {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn SetAlign(&mut self, _align: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetAlign(&mut self, _align: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Color(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetColor(&mut self, _color: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetColor(&mut self, _color: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn NoShade(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn SetNoShade(&self, _no_shade: bool, _rv: &mut ErrorResult) {
|
||||
pub fn SetNoShade(&self, _no_shade: bool) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Size(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetSize(&mut self, _size: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetSize(&mut self, _size: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Width(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetWidth(&mut self, _width: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetWidth(&mut self, _width: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue