mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -39,11 +39,17 @@ impl HTMLLabelElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl HTMLLabelElement {
|
||||
pub fn HtmlFor(&self) -> DOMString {
|
||||
pub trait HTMLLabelElementMethods {
|
||||
fn HtmlFor(&self) -> DOMString;
|
||||
fn SetHtmlFor(&mut self, _html_for: DOMString);
|
||||
}
|
||||
|
||||
impl<'a> HTMLLabelElementMethods for JSRef<'a, HTMLLabelElement> {
|
||||
fn HtmlFor(&self) -> DOMString {
|
||||
~""
|
||||
}
|
||||
|
||||
pub fn SetHtmlFor(&mut self, _html_for: DOMString) {
|
||||
fn SetHtmlFor(&mut self, _html_for: DOMString) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue