Rename get_wrappercache() to reflector(). v1

I also updated some variable names in the codegen.
This commit is contained in:
Bobby Holley 2013-10-08 20:36:56 +02:00
parent 2cbe2d7ce9
commit 62ddac8b6f
30 changed files with 60 additions and 60 deletions

View file

@ -96,7 +96,7 @@ pub fn create(cx: *JSContext, node: &mut AbstractNode<ScriptView>) -> *JSObject
}
impl Reflectable for AbstractNode<ScriptView> {
fn get_wrappercache(&mut self) -> &mut Reflector {
fn reflector(&mut self) -> &mut Reflector {
do self.with_mut_base |base| {
unsafe {
cast::transmute(&base.wrapper)
@ -118,7 +118,7 @@ impl Traceable for Node<ScriptView> {
}
debug!("tracing %s", name);
let mut node = node.unwrap();
let cache = node.get_wrappercache();
let cache = node.reflector();
let wrapper = cache.get_wrapper();
assert!(wrapper.is_not_null());
unsafe {