mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move WebIDL methods to traits implemented by JSRef types.
This commit is contained in:
parent
dfdda0098a
commit
76783b029e
106 changed files with 3644 additions and 1912 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue