aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablecellelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-27 13:37:57 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-14 18:45:35 +0200
commitaab2c40389c71c4b0db3ffa75bdec99cd440b8af (patch)
treebfb10ce6c6c81cbc33b2ca34b8c8447d943ffd6a /components/script/dom/htmltablecellelement.rs
parent55769b2fbf24ed84ee0f8ea5fe856e5fd29d8e60 (diff)
downloadservo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.tar.gz
servo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.zip
Generate the TypeId enums in codegen
Diffstat (limited to 'components/script/dom/htmltablecellelement.rs')
-rw-r--r--components/script/dom/htmltablecellelement.rs28
1 files changed, 7 insertions, 21 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index d377d1cee3d..98b41bde6b6 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -6,16 +6,15 @@ use cssparser::RGBA;
use dom::attr::{Attr, AttrValue};
use dom::bindings::codegen::Bindings::HTMLTableCellElementBinding::HTMLTableCellElementMethods;
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
-use dom::bindings::codegen::InheritTypes::HTMLElementCast;
-use dom::bindings::codegen::InheritTypes::HTMLTableCellElementDerived;
-use dom::bindings::codegen::InheritTypes::HTMLTableRowElementDerived;
-use dom::bindings::codegen::InheritTypes::NodeCast;
+use dom::bindings::codegen::InheritTypes::{ElementTypeId, EventTargetTypeId, HTMLElementCast};
+use dom::bindings::codegen::InheritTypes::{HTMLElementTypeId, HTMLTableCellElementDerived};
+use dom::bindings::codegen::InheritTypes::{HTMLTableCellElementTypeId, HTMLTableRowElementDerived};
+use dom::bindings::codegen::InheritTypes::{NodeCast, NodeTypeId};
use dom::bindings::js::LayoutJS;
use dom::document::Document;
-use dom::element::{AttributeMutation, ElementTypeId};
-use dom::eventtarget::{EventTarget, EventTargetTypeId};
-use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
-use dom::node::NodeTypeId;
+use dom::element::AttributeMutation;
+use dom::eventtarget::EventTarget;
+use dom::htmlelement::HTMLElement;
use dom::virtualmethods::VirtualMethods;
use std::cell::Cell;
use std::cmp::max;
@@ -24,19 +23,6 @@ use util::str::{self, DOMString, LengthOrPercentageOrAuto};
const DEFAULT_COLSPAN: u32 = 1;
-#[derive(Copy, Clone, Debug)]
-pub enum HTMLTableCellElementTypeId {
- HTMLTableDataCellElement = 0,
- HTMLTableHeaderCellElement = 1,
-}
-
-impl PartialEq for HTMLTableCellElementTypeId {
- #[inline]
- fn eq(&self, other: &HTMLTableCellElementTypeId) -> bool {
- (*self as u8) == (*other as u8)
- }
-}
-
#[dom_struct]
pub struct HTMLTableCellElement {
htmlelement: HTMLElement,