diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-27 13:37:57 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-14 18:45:35 +0200 |
commit | aab2c40389c71c4b0db3ffa75bdec99cd440b8af (patch) | |
tree | bfb10ce6c6c81cbc33b2ca34b8c8447d943ffd6a /components/script/dom/bindings/utils.rs | |
parent | 55769b2fbf24ed84ee0f8ea5fe856e5fd29d8e60 (diff) | |
download | servo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.tar.gz servo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.zip |
Generate the TypeId enums in codegen
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index d00c164d0a9..52cf58e4ff0 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -4,6 +4,7 @@ //! Various utilities to glue JavaScript and the DOM implementation together. +use dom::bindings::codegen::InheritTypes::TopTypeId; use dom::bindings::codegen::PrototypeList; use dom::bindings::codegen::PrototypeList::MAX_PROTO_CHAIN_LENGTH; use dom::bindings::conversions::native_from_handleobject; @@ -15,7 +16,6 @@ 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 js; use js::glue::{CallJitGetterOp, CallJitMethodOp, CallJitSetterOp, IsWrapper}; @@ -156,8 +156,8 @@ 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 type ID of that interface. + pub type_id: TopTypeId, /// The NativePropertyHooks for the interface associated with this class. pub native_hooks: &'static NativePropertyHooks, |