aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r--components/script/dom/htmlmediaelement.rs23
1 files changed, 5 insertions, 18 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 8630cf5a745..6ee08046b26 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -2,12 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived;
+use dom::bindings::codegen::InheritTypes::{ElementTypeId, EventTargetTypeId};
+use dom::bindings::codegen::InheritTypes::{HTMLElementTypeId, HTMLMediaElementDerived};
+use dom::bindings::codegen::InheritTypes::{HTMLMediaElementTypeId, NodeTypeId};
use dom::document::Document;
-use dom::element::ElementTypeId;
-use dom::eventtarget::{EventTarget, EventTargetTypeId};
-use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
-use dom::node::NodeTypeId;
+use dom::eventtarget::EventTarget;
+use dom::htmlelement::HTMLElement;
use util::str::DOMString;
#[dom_struct]
@@ -40,16 +40,3 @@ impl HTMLMediaElement {
&self.htmlelement
}
}
-
-#[derive(Copy, Clone, Debug)]
-pub enum HTMLMediaElementTypeId {
- HTMLAudioElement = 0,
- HTMLVideoElement = 1,
-}
-
-impl PartialEq for HTMLMediaElementTypeId {
- #[inline]
- fn eq(&self, other: &HTMLMediaElementTypeId) -> bool {
- (*self as u8) == (*other as u8)
- }
-}