diff options
Diffstat (limited to 'components/script/dom/htmlparamelement.rs')
-rw-r--r-- | components/script/dom/htmlparamelement.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/components/script/dom/htmlparamelement.rs b/components/script/dom/htmlparamelement.rs index c2cc044c7f7..ff1c010b384 100644 --- a/components/script/dom/htmlparamelement.rs +++ b/components/script/dom/htmlparamelement.rs @@ -3,11 +3,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::HTMLParamElementBinding; -use dom::bindings::codegen::InheritTypes::{ElementTypeId, EventTargetTypeId, HTMLElementTypeId}; -use dom::bindings::codegen::InheritTypes::{HTMLParamElementDerived, NodeTypeId}; +use dom::bindings::codegen::InheritTypes::HTMLElementTypeId; use dom::bindings::js::Root; use dom::document::Document; -use dom::eventtarget::EventTarget; use dom::htmlelement::HTMLElement; use dom::node::Node; use util::str::DOMString; @@ -17,14 +15,6 @@ pub struct HTMLParamElement { htmlelement: HTMLElement } -impl HTMLParamElementDerived for EventTarget { - fn is_htmlparamelement(&self) -> bool { - *self.type_id() == - EventTargetTypeId::Node( - NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLParamElement))) - } -} - impl HTMLParamElement { fn new_inherited(localName: DOMString, prefix: Option<DOMString>, |