aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablecellelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmltablecellelement.rs')
-rw-r--r--components/script/dom/htmltablecellelement.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index e9c3a0ab59a..7acc0f7e4ec 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -23,11 +23,18 @@ use std::cmp::max;
const DEFAULT_COLSPAN: u32 = 1;
-#[derive(Copy, Clone, PartialEq, Debug)]
+#[derive(Copy, Clone, Debug)]
#[jstraceable]
pub enum HTMLTableCellElementTypeId {
- HTMLTableDataCellElement,
- HTMLTableHeaderCellElement,
+ HTMLTableDataCellElement = 0,
+ HTMLTableHeaderCellElement = 1,
+}
+
+impl PartialEq for HTMLTableCellElementTypeId {
+ #[inline]
+ fn eq(&self, other: &HTMLTableCellElementTypeId) -> bool {
+ (*self as u8) == (*other as u8)
+ }
}
#[dom_struct]
@@ -143,3 +150,4 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLTableCellElement> {
}
}
}
+