aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/eventtarget.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2013-10-08 20:31:24 +0200
committerBobby Holley <bobbyholley@gmail.com>2013-10-09 12:07:41 +0200
commit2cbe2d7ce914d2bb371c62aff19c08a0b522661b (patch)
tree59f0a1e72defb2d262cbf3deca21bb378ceabf34 /src/components/script/dom/eventtarget.rs
parent0a0599ad9b0c8723e94bd0889cda00d87250c64d (diff)
downloadservo-2cbe2d7ce914d2bb371c62aff19c08a0b522661b.tar.gz
servo-2cbe2d7ce914d2bb371c62aff19c08a0b522661b.zip
Rename WrapperCache to Reflector.
I think the abstraction from the raw JSObject is still probably worthwhile for now.
Diffstat (limited to 'src/components/script/dom/eventtarget.rs')
-rw-r--r--src/components/script/dom/eventtarget.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/eventtarget.rs b/src/components/script/dom/eventtarget.rs
index dc60979e551..eb417e513a0 100644
--- a/src/components/script/dom/eventtarget.rs
+++ b/src/components/script/dom/eventtarget.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::EventTargetBinding;
-use dom::bindings::utils::{Reflectable, WrapperCache, BindingObject, DerivedWrapper};
+use dom::bindings::utils::{Reflectable, Reflector, BindingObject, DerivedWrapper};
use script_task::page_from_context;
use js::glue::RUST_OBJECT_TO_JSVAL;
@@ -12,13 +12,13 @@ use js::jsapi::{JSObject, JSContext, JSVal};
use std::cast;
pub struct EventTarget {
- wrapper: WrapperCache
+ wrapper: Reflector
}
impl EventTarget {
pub fn new() -> ~EventTarget {
~EventTarget {
- wrapper: WrapperCache::new()
+ wrapper: Reflector::new()
}
}
@@ -28,7 +28,7 @@ impl EventTarget {
}
impl Reflectable for EventTarget {
- fn get_wrappercache(&mut self) -> &mut WrapperCache {
+ fn get_wrappercache(&mut self) -> &mut Reflector {
unsafe { cast::transmute(&self.wrapper) }
}