diff options
Diffstat (limited to 'src/components/script/dom/nodelist.rs')
-rw-r--r-- | src/components/script/dom/nodelist.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/nodelist.rs b/src/components/script/dom/nodelist.rs index ebd7a2f6ae9..61a9884e9a9 100644 --- a/src/components/script/dom/nodelist.rs +++ b/src/components/script/dom/nodelist.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::NodeListBinding; +use dom::bindings::codegen::Bindings::NodeListBinding::NodeListMethods; use dom::bindings::global::Window; use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; @@ -44,12 +45,6 @@ impl NodeList { } } -pub trait NodeListMethods { - fn Length(&self) -> u32; - fn Item(&self, index: u32) -> Option<Temporary<Node>>; - fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Temporary<Node>>; -} - impl<'a> NodeListMethods for JSRef<'a, NodeList> { fn Length(&self) -> u32 { match self.list_type { |