aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorMichael Wu <mwu@mozilla.com>2015-07-10 21:27:41 -0400
committerAnthony Ramine <n.oxyde@gmail.com>2015-09-12 01:09:46 +0200
commit941f7dc04bc02ad196e86c5167ea292477fb7284 (patch)
treebf867d7a25d243a9ff38d346c219a2aac38eac5e /components/script/dom/bindings/utils.rs
parent8d7ba12f28a873880c1f51b122d4fc185294c849 (diff)
downloadservo-941f7dc04bc02ad196e86c5167ea292477fb7284.tar.gz
servo-941f7dc04bc02ad196e86c5167ea292477fb7284.zip
Move EventTargetTypeId/NodeTypeId to DOMClass
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r--components/script/dom/bindings/utils.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 08e8fde7225..be600d807d3 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -15,6 +15,7 @@ use dom::bindings::global::GlobalRef;
use dom::bindings::js::Root;
use dom::bindings::trace::trace_object;
use dom::browsercontext;
+use dom::eventtarget::EventTargetTypeId;
use dom::window;
use util::mem::HeapSizeOf;
use util::str::DOMString;
@@ -157,6 +158,9 @@ pub struct DOMClass {
/// derivedness.
pub interface_chain: [PrototypeList::ID; MAX_PROTO_CHAIN_LENGTH],
+ /// The EventTarget type, if this is derived from an EventTarget.
+ pub type_id: Option<EventTargetTypeId>,
+
/// The NativePropertyHooks for the interface associated with this class.
pub native_hooks: &'static NativePropertyHooks,
}