aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlaudioelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-27 17:52:37 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-14 22:04:20 +0200
commit617fc08783d2356e644266d9e9addcd720a7138a (patch)
treea6fc12bb589d06b41de50a6c2612bcec46ab029b /components/script/dom/htmlaudioelement.rs
parent32daa17d5cbcad02db0713e21e52410cdc60480e (diff)
downloadservo-617fc08783d2356e644266d9e9addcd720a7138a.tar.gz
servo-617fc08783d2356e644266d9e9addcd720a7138a.zip
Generate all Derived implementations in codegen
Diffstat (limited to 'components/script/dom/htmlaudioelement.rs')
-rw-r--r--components/script/dom/htmlaudioelement.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/components/script/dom/htmlaudioelement.rs b/components/script/dom/htmlaudioelement.rs
index d942d5a20d5..8f8101c3f32 100644
--- a/components/script/dom/htmlaudioelement.rs
+++ b/components/script/dom/htmlaudioelement.rs
@@ -3,12 +3,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::Bindings::HTMLAudioElementBinding;
-use dom::bindings::codegen::InheritTypes::{ElementTypeId, EventTargetTypeId};
-use dom::bindings::codegen::InheritTypes::{HTMLAudioElementDerived, HTMLElementTypeId};
-use dom::bindings::codegen::InheritTypes::{HTMLMediaElementTypeId, NodeTypeId};
+use dom::bindings::codegen::InheritTypes::HTMLMediaElementTypeId;
use dom::bindings::js::Root;
use dom::document::Document;
-use dom::eventtarget::EventTarget;
use dom::htmlmediaelement::HTMLMediaElement;
use dom::node::Node;
use util::str::DOMString;
@@ -18,15 +15,6 @@ pub struct HTMLAudioElement {
htmlmediaelement: HTMLMediaElement
}
-impl HTMLAudioElementDerived for EventTarget {
- fn is_htmlaudioelement(&self) -> bool {
- *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(
- ElementTypeId::HTMLElement(
- HTMLElementTypeId::HTMLMediaElement(
- HTMLMediaElementTypeId::HTMLAudioElement))))
- }
-}
-
impl HTMLAudioElement {
fn new_inherited(localName: DOMString,
prefix: Option<DOMString>,