mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rename get_wrappercache() to reflector(). v1
I also updated some variable names in the codegen.
This commit is contained in:
parent
2cbe2d7ce9
commit
62ddac8b6f
30 changed files with 60 additions and 60 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue