aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlhtmlelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-04-10 21:29:54 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-05-03 14:18:30 -0400
commit76783b029e5e10da7fd61ab356a8f80a1eaf32e0 (patch)
tree93697ff8906d2661434abc660ae57607b1871b59 /src/components/script/dom/htmlhtmlelement.rs
parentdfdda0098a3f169a37c100b36d4dd36ec1d815aa (diff)
downloadservo-76783b029e5e10da7fd61ab356a8f80a1eaf32e0.tar.gz
servo-76783b029e5e10da7fd61ab356a8f80a1eaf32e0.zip
Move WebIDL methods to traits implemented by JSRef types.
Diffstat (limited to 'src/components/script/dom/htmlhtmlelement.rs')
-rw-r--r--src/components/script/dom/htmlhtmlelement.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/script/dom/htmlhtmlelement.rs b/src/components/script/dom/htmlhtmlelement.rs
index 1930ce271c2..e30968f91f4 100644
--- a/src/components/script/dom/htmlhtmlelement.rs
+++ b/src/components/script/dom/htmlhtmlelement.rs
@@ -40,12 +40,18 @@ impl HTMLHtmlElement {
}
}
-impl HTMLHtmlElement {
- pub fn Version(&self) -> DOMString {
+pub trait HTMLHtmlElementMethods {
+ fn Version(&self) -> DOMString;
+ fn SetVersion(&mut self, _version: DOMString) -> ErrorResult;
+}
+
+impl<'a> HTMLHtmlElementMethods for JSRef<'a, HTMLHtmlElement> {
+ fn Version(&self) -> DOMString {
~""
}
- pub fn SetVersion(&mut self, _version: DOMString) -> ErrorResult {
+ fn SetVersion(&mut self, _version: DOMString) -> ErrorResult {
Ok(())
}
}
+