aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlparagraphelement.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/htmlparagraphelement.rs
parentde3cff0e08bb93bad0c317ba4fe130a8a89cdb55 (diff)
downloadservo-f85b9e37cc121544bd4c2ebe434e717eb3a3d953.tar.gz
servo-f85b9e37cc121544bd4c2ebe434e717eb3a3d953.zip
Add HTMLElementTypeId enum (fixes #3625)
Diffstat (limited to 'components/script/dom/htmlparagraphelement.rs')
-rw-r--r--components/script/dom/htmlparagraphelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs
index d2085af7bf0..baa4ef05623 100644
--- a/components/script/dom/htmlparagraphelement.rs
+++ b/components/script/dom/htmlparagraphelement.rs
@@ -6,9 +6,9 @@ use dom::bindings::codegen::Bindings::HTMLParagraphElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLParagraphElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
-use dom::element::ElementTypeId;
use dom::eventtarget::{EventTarget, EventTargetTypeId};
-use dom::htmlelement::HTMLElement;
+use dom::element::ElementTypeId;
+use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
use dom::node::{Node, NodeTypeId};
use servo_util::str::DOMString;
@@ -19,14 +19,14 @@ pub struct HTMLParagraphElement {
impl HTMLParagraphElementDerived for EventTarget {
fn is_htmlparagraphelement(&self) -> bool {
- *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLParagraphElement))
+ *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLParagraphElement)))
}
}
impl HTMLParagraphElement {
fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLParagraphElement {
HTMLParagraphElement {
- htmlelement: HTMLElement::new_inherited(ElementTypeId::HTMLParagraphElement, localName, prefix, document)
+ htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLParagraphElement, localName, prefix, document)
}
}