aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlvideoelement.rs
diff options
context:
space:
mode:
authorMegha Gupta <meghabloomgirl@gmail.com>2014-12-28 15:44:03 +0530
committerMegha Gupta <meghabloomgirl@gmail.com>2015-01-02 23:10:31 +0530
commitf85b9e37cc121544bd4c2ebe434e717eb3a3d953 (patch)
tree0027f2abb3ca5b9affd959fefb4eda736c99ce99 /components/script/dom/htmlvideoelement.rs
parentde3cff0e08bb93bad0c317ba4fe130a8a89cdb55 (diff)
downloadservo-f85b9e37cc121544bd4c2ebe434e717eb3a3d953.tar.gz
servo-f85b9e37cc121544bd4c2ebe434e717eb3a3d953.zip
Add HTMLElementTypeId enum (fixes #3625)
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r--components/script/dom/htmlvideoelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs
index 769c695b5a6..31af50bc491 100644
--- a/components/script/dom/htmlvideoelement.rs
+++ b/components/script/dom/htmlvideoelement.rs
@@ -6,6 +6,7 @@ use dom::bindings::codegen::Bindings::HTMLVideoElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
+use dom::htmlelement::HTMLElementTypeId;
use dom::element::ElementTypeId;
use dom::eventtarget::{EventTarget, EventTargetTypeId};
use dom::htmlmediaelement::HTMLMediaElement;
@@ -19,14 +20,14 @@ pub struct HTMLVideoElement {
impl HTMLVideoElementDerived for EventTarget {
fn is_htmlvideoelement(&self) -> bool {
- *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLVideoElement))
+ *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLVideoElement)))
}
}
impl HTMLVideoElement {
fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLVideoElement {
HTMLVideoElement {
- htmlmediaelement: HTMLMediaElement::new_inherited(ElementTypeId::HTMLVideoElement, localName, prefix, document)
+ htmlmediaelement: HTMLMediaElement::new_inherited(HTMLElementTypeId::HTMLVideoElement, localName, prefix, document)
}
}