aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablecellelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-27 17:52:37 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-14 22:04:20 +0200
commit617fc08783d2356e644266d9e9addcd720a7138a (patch)
treea6fc12bb589d06b41de50a6c2612bcec46ab029b /components/script/dom/htmltablecellelement.rs
parent32daa17d5cbcad02db0713e21e52410cdc60480e (diff)
downloadservo-617fc08783d2356e644266d9e9addcd720a7138a.tar.gz
servo-617fc08783d2356e644266d9e9addcd720a7138a.zip
Generate all Derived implementations in codegen
Diffstat (limited to 'components/script/dom/htmltablecellelement.rs')
-rw-r--r--components/script/dom/htmltablecellelement.rs18
1 files changed, 3 insertions, 15 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index 98b41bde6b6..834f1419c94 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -6,14 +6,12 @@ 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::{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::codegen::InheritTypes::{HTMLElementCast, HTMLElementTypeId};
+use dom::bindings::codegen::InheritTypes::{HTMLTableCellElementDerived, HTMLTableCellElementTypeId};
+use dom::bindings::codegen::InheritTypes::{HTMLTableRowElementDerived, NodeCast};
use dom::bindings::js::LayoutJS;
use dom::document::Document;
use dom::element::AttributeMutation;
-use dom::eventtarget::EventTarget;
use dom::htmlelement::HTMLElement;
use dom::virtualmethods::VirtualMethods;
use std::cell::Cell;
@@ -31,16 +29,6 @@ pub struct HTMLTableCellElement {
width: Cell<LengthOrPercentageOrAuto>,
}
-impl HTMLTableCellElementDerived for EventTarget {
- fn is_htmltablecellelement(&self) -> bool {
- match *self.type_id() {
- EventTargetTypeId::Node(
- NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTableCellElement(_)))) => true,
- _ => false
- }
- }
-}
-
impl HTMLTableCellElement {
pub fn new_inherited(type_id: HTMLTableCellElementTypeId,
tag_name: DOMString,