mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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,14 +14,16 @@ impl HTMLVideoElement {
|
|||
0
|
||||
}
|
||||
|
||||
pub fn SetWidth(&mut self, _width: u32, _rv: &ErrorResult) {
|
||||
pub fn SetWidth(&mut self, _width: u32) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn Height(&self) -> u32 {
|
||||
0
|
||||
}
|
||||
|
||||
pub fn SetHeight(&mut self, _height: u32, _rv: &ErrorResult) {
|
||||
pub fn SetHeight(&mut self, _height: u32) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn VideoWidth(&self) -> u32 {
|
||||
|
@ -36,6 +38,7 @@ impl HTMLVideoElement {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn SetPoster(&mut self, _poster: &DOMString, _rv: &ErrorResult) {
|
||||
pub fn SetPoster(&mut self, _poster: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue