diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2013-10-08 20:31:24 +0200 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2013-10-09 12:07:41 +0200 |
commit | 2cbe2d7ce914d2bb371c62aff19c08a0b522661b (patch) | |
tree | 59f0a1e72defb2d262cbf3deca21bb378ceabf34 /src/components/script/dom/validitystate.rs | |
parent | 0a0599ad9b0c8723e94bd0889cda00d87250c64d (diff) | |
download | servo-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/validitystate.rs')
-rw-r--r-- | src/components/script/dom/validitystate.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/validitystate.rs b/src/components/script/dom/validitystate.rs index cca4b43b826..25bb25d91e6 100644 --- a/src/components/script/dom/validitystate.rs +++ b/src/components/script/dom/validitystate.rs @@ -2,20 +2,20 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::bindings::utils::{WrapperCache, BindingObject, Reflectable}; +use dom::bindings::utils::{Reflector, BindingObject, Reflectable}; use dom::bindings::codegen::ValidityStateBinding; use js::jsapi::{JSContext, JSObject}; use std::cast; pub struct ValidityState { - wrapper: WrapperCache, + wrapper: Reflector, state: u8 } impl ValidityState { pub fn valid() -> ValidityState { ValidityState { - wrapper: WrapperCache::new(), + wrapper: Reflector::new(), state: 0 } } @@ -60,7 +60,7 @@ impl ValidityState { } impl Reflectable for ValidityState { - fn get_wrappercache(&mut self) -> &mut WrapperCache { + fn get_wrappercache(&mut self) -> &mut Reflector { unsafe { cast::transmute(&self.wrapper) } } |