diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-24 03:01:03 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-24 05:44:49 +0530 |
commit | cc44a3b0641d94908b2b2e01bec440f64f89f8be (patch) | |
tree | a4b70f846ee51abd5b413c6875ef1bc24449c8b9 /components/script/dom/bindings/callback.rs | |
parent | 85f79290a67afb25369a9a48ee9a389ee32fd20e (diff) | |
download | servo-cc44a3b0641d94908b2b2e01bec440f64f89f8be.tar.gz servo-cc44a3b0641d94908b2b2e01bec440f64f89f8be.zip |
Use JSTraceable everywhere
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 5c1f4c771cb..4f9c04f6e42 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -13,8 +13,6 @@ use js::jsval::{JSVal, UndefinedValue}; use std::ptr; -use serialize::{Encodable, Encoder}; - /// The exception handling used for a call. pub enum ExceptionHandling { /// Report any exception and don't throw it to the caller code. @@ -28,7 +26,8 @@ pub enum ExceptionHandling { } /// A common base class for representing IDL callback function types. -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] pub struct CallbackFunction { object: CallbackObject } @@ -44,7 +43,8 @@ impl CallbackFunction { } /// A common base class for representing IDL callback interface types. -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] pub struct CallbackInterface { object: CallbackObject } @@ -52,7 +52,8 @@ pub struct CallbackInterface { /// A common base class for representing IDL callback function and /// callback interface types. #[allow(raw_pointer_deriving)] -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] struct CallbackObject { /// The underlying `JSObject`. callback: Traceable<*mut JSObject>, |