diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-27 17:52:37 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-14 22:04:20 +0200 |
commit | 617fc08783d2356e644266d9e9addcd720a7138a (patch) | |
tree | a6fc12bb589d06b41de50a6c2612bcec46ab029b /components/script/dom/htmloptionelement.rs | |
parent | 32daa17d5cbcad02db0713e21e52410cdc60480e (diff) | |
download | servo-617fc08783d2356e644266d9e9addcd720a7138a.tar.gz servo-617fc08783d2356e644266d9e9addcd720a7138a.zip |
Generate all Derived implementations in codegen
Diffstat (limited to 'components/script/dom/htmloptionelement.rs')
-rw-r--r-- | components/script/dom/htmloptionelement.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs index e8d655a2a8f..79dedf2f94f 100644 --- a/components/script/dom/htmloptionelement.rs +++ b/components/script/dom/htmloptionelement.rs @@ -7,14 +7,12 @@ use dom::bindings::codegen::Bindings::CharacterDataBinding::CharacterDataMethods use dom::bindings::codegen::Bindings::HTMLOptionElementBinding; use dom::bindings::codegen::Bindings::HTMLOptionElementBinding::HTMLOptionElementMethods; use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods; -use dom::bindings::codegen::InheritTypes::{CharacterDataCast, ElementCast, ElementTypeId}; -use dom::bindings::codegen::InheritTypes::{EventTargetTypeId, HTMLElementCast, HTMLElementTypeId}; -use dom::bindings::codegen::InheritTypes::{HTMLOptionElementDerived, HTMLScriptElementDerived}; -use dom::bindings::codegen::InheritTypes::{NodeCast, NodeTypeId, TextDerived}; +use dom::bindings::codegen::InheritTypes::{CharacterDataCast, ElementCast, HTMLElementCast}; +use dom::bindings::codegen::InheritTypes::{HTMLElementTypeId, HTMLScriptElementDerived}; +use dom::bindings::codegen::InheritTypes::{NodeCast, TextDerived}; use dom::bindings::js::Root; use dom::document::Document; use dom::element::{AttributeMutation, Element}; -use dom::eventtarget::EventTarget; use dom::htmlelement::HTMLElement; use dom::node::Node; use dom::virtualmethods::VirtualMethods; @@ -32,14 +30,6 @@ pub struct HTMLOptionElement { dirtiness: Cell<bool>, } -impl HTMLOptionElementDerived for EventTarget { - fn is_htmloptionelement(&self) -> bool { - *self.type_id() == - EventTargetTypeId::Node( - NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLOptionElement))) - } -} - impl HTMLOptionElement { fn new_inherited(localName: DOMString, prefix: Option<DOMString>, |