aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlquoteelement.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/htmlquoteelement.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/htmlquoteelement.rs')
-rw-r--r--src/components/script/dom/htmlquoteelement.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/script/dom/htmlquoteelement.rs b/src/components/script/dom/htmlquoteelement.rs
index 9c67c2ac2f4..db7edcbede4 100644
--- a/src/components/script/dom/htmlquoteelement.rs
+++ b/src/components/script/dom/htmlquoteelement.rs
@@ -40,12 +40,18 @@ impl HTMLQuoteElement {
}
}
-impl HTMLQuoteElement {
- pub fn Cite(&self) -> DOMString {
+pub trait HTMLQuoteElementMethods {
+ fn Cite(&self) -> DOMString;
+ fn SetCite(&self, _cite: DOMString) -> ErrorResult;
+}
+
+impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> {
+ fn Cite(&self) -> DOMString {
~""
}
- pub fn SetCite(&self, _cite: DOMString) -> ErrorResult {
+ fn SetCite(&self, _cite: DOMString) -> ErrorResult {
Ok(())
}
}
+