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,20 +40,28 @@ impl HTMLFrameSetElement {
}
}
impl HTMLFrameSetElement {
pub fn Cols(&self) -> DOMString {
pub trait HTMLFrameSetElementMethods {
fn Cols(&self) -> DOMString;
fn SetCols(&mut self, _cols: DOMString) -> ErrorResult;
fn Rows(&self) -> DOMString;
fn SetRows(&mut self, _rows: DOMString) -> ErrorResult;
}
impl<'a> HTMLFrameSetElementMethods for JSRef<'a, HTMLFrameSetElement> {
fn Cols(&self) -> DOMString {
~""
}
pub fn SetCols(&mut self, _cols: DOMString) -> ErrorResult {
fn SetCols(&mut self, _cols: DOMString) -> ErrorResult {
Ok(())
}
pub fn Rows(&self) -> DOMString {
fn Rows(&self) -> DOMString {
~""
}
pub fn SetRows(&mut self, _rows: DOMString) -> ErrorResult {
fn SetRows(&mut self, _rows: DOMString) -> ErrorResult {
Ok(())
}
}