Move WebIDL methods to traits implemented by JSRef types.

This commit is contained in:
Josh Matthews 2014-04-10 21:29:54 -04:00
parent dfdda0098a
commit 76783b029e
106 changed files with 3644 additions and 1912 deletions

View file

@ -40,12 +40,18 @@ impl HTMLBRElement {
}
}
impl HTMLBRElement {
pub fn Clear(&self) -> DOMString {
pub trait HTMLBRElementMethods {
fn Clear(&self) -> DOMString;
fn SetClear(&mut self, _text: DOMString) -> ErrorResult;
}
impl<'a> HTMLBRElementMethods for JSRef<'a, HTMLBRElement> {
fn Clear(&self) -> DOMString {
~""
}
pub fn SetClear(&mut self, _text: DOMString) -> ErrorResult {
fn SetClear(&mut self, _text: DOMString) -> ErrorResult {
Ok(())
}
}