mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30: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
|
@ -21,20 +21,23 @@ impl HTMLStyleElement {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn SetMedia(&mut self, _media: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetMedia(&mut self, _media: &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 Scoped(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn SetScoped(&self, _scoped: bool, _rv: &mut ErrorResult) {
|
||||
pub fn SetScoped(&self, _scoped: bool) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue