mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects.
This commit is contained in:
parent
92e91c58da
commit
5ed8b9e83f
16 changed files with 46 additions and 46 deletions
|
@ -15,14 +15,14 @@ use std::ptr;
|
|||
|
||||
pub struct HTMLCollection {
|
||||
elements: ~[AbstractNode<ScriptView>],
|
||||
wrapper: Reflector
|
||||
reflector_: Reflector
|
||||
}
|
||||
|
||||
impl HTMLCollection {
|
||||
pub fn new(elements: ~[AbstractNode<ScriptView>], cx: *JSContext, scope: *JSObject) -> @mut HTMLCollection {
|
||||
let collection = @mut HTMLCollection {
|
||||
elements: elements,
|
||||
wrapper: Reflector::new()
|
||||
reflector_: Reflector::new()
|
||||
};
|
||||
collection.init_wrapper(cx, scope);
|
||||
collection
|
||||
|
@ -71,7 +71,7 @@ impl BindingObject for HTMLCollection {
|
|||
impl Reflectable for HTMLCollection {
|
||||
fn reflector(&mut self) -> &mut Reflector {
|
||||
unsafe {
|
||||
cast::transmute(&self.wrapper)
|
||||
cast::transmute(&self.reflector_)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue