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