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,40 +40,53 @@ impl HTMLTableSectionElement {
}
}
impl HTMLTableSectionElement {
pub fn DeleteRow(&mut self, _index: i32) -> ErrorResult {
pub trait HTMLTableSectionElementMethods {
fn DeleteRow(&mut self, _index: i32) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString;
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString;
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult;
fn VAlign(&self) -> DOMString;
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
fn DeleteRow(&mut self, _index: i32) -> ErrorResult {
Ok(())
}
pub fn Align(&self) -> DOMString {
fn Align(&self) -> DOMString {
~""
}
pub fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
Ok(())
}
pub fn Ch(&self) -> DOMString {
fn Ch(&self) -> DOMString {
~""
}
pub fn SetCh(&mut self, _ch: DOMString) -> ErrorResult {
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult {
Ok(())
}
pub fn ChOff(&self) -> DOMString {
fn ChOff(&self) -> DOMString {
~""
}
pub fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult {
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult {
Ok(())
}
pub fn VAlign(&self) -> DOMString {
fn VAlign(&self) -> DOMString {
~""
}
pub fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult {
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult {
Ok(())
}
}