aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domtokenlist.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-27 20:22:13 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-27 23:00:17 +0200
commit944d8b00b05c41a272f59eb8d24886ece8bcc95b (patch)
tree706088bb79c7f33c954837352228dd03170a8171 /src/components/script/dom/domtokenlist.rs
parent38a658d561a316031f190f3f1f2055b0be78553f (diff)
downloadservo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.tar.gz
servo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.zip
Call the generated rather than the hand-written traits (fixes #2936).
Diffstat (limited to 'src/components/script/dom/domtokenlist.rs')
-rw-r--r--src/components/script/dom/domtokenlist.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/domtokenlist.rs b/src/components/script/dom/domtokenlist.rs
index ebbbd73e3ba..cf44d5f7abc 100644
--- a/src/components/script/dom/domtokenlist.rs
+++ b/src/components/script/dom/domtokenlist.rs
@@ -4,6 +4,7 @@
use dom::attr::{Attr, TokenListAttrValue};
use dom::bindings::codegen::Bindings::DOMTokenListBinding;
+use dom::bindings::codegen::Bindings::DOMTokenListBinding::DOMTokenListMethods;
use dom::bindings::global::Window;
use dom::bindings::js::{JS, JSRef, Temporary, OptionalRootable};
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
@@ -55,12 +56,6 @@ impl<'a> PrivateDOMTokenListHelpers for JSRef<'a, DOMTokenList> {
}
}
-pub trait DOMTokenListMethods {
- fn Length(&self) -> u32;
- fn Item(&self, index: u32) -> Option<DOMString>;
- fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<DOMString>;
-}
-
// http://dom.spec.whatwg.org/#domtokenlist
impl<'a> DOMTokenListMethods for JSRef<'a, DOMTokenList> {
// http://dom.spec.whatwg.org/#dom-domtokenlist-length