aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/attrlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/attrlist.rs')
-rw-r--r--src/components/script/dom/attrlist.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/attrlist.rs b/src/components/script/dom/attrlist.rs
index 8f4c309ab54..e4812b756c2 100644
--- a/src/components/script/dom/attrlist.rs
+++ b/src/components/script/dom/attrlist.rs
@@ -4,6 +4,7 @@
use dom::attr::Attr;
use dom::bindings::codegen::Bindings::AttrListBinding;
+use dom::bindings::codegen::Bindings::AttrListBinding::AttrListMethods;
use dom::bindings::global::Window;
use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
@@ -30,12 +31,6 @@ impl AttrList {
}
}
-pub trait AttrListMethods {
- fn Length(&self) -> u32;
- fn Item(&self, index: u32) -> Option<Temporary<Attr>>;
- fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Temporary<Attr>>;
-}
-
impl<'a> AttrListMethods for JSRef<'a, AttrList> {
fn Length(&self) -> u32 {
self.owner.root().attrs.borrow().len() as u32