mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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,12 +40,18 @@ impl HTMLTableCaptionElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl HTMLTableCaptionElement {
|
||||
pub fn Align(&self) -> DOMString {
|
||||
pub trait HTMLTableCaptionElementMethods {
|
||||
fn Align(&self) -> DOMString;
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLTableCaptionElementMethods for JSRef<'a, HTMLTableCaptionElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
}
|
||||
|
||||
pub fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue