mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -12,14 +12,14 @@ use js::jsapi::{JSObject, JSContext};
|
|||
use std::cast;
|
||||
|
||||
pub struct ClientRectList {
|
||||
wrapper: Reflector,
|
||||
reflector_: Reflector,
|
||||
rects: ~[@mut ClientRect]
|
||||
}
|
||||
|
||||
impl ClientRectList {
|
||||
pub fn new(rects: ~[@mut ClientRect], cx: *JSContext, scope: *JSObject) -> @mut ClientRectList {
|
||||
let list = @mut ClientRectList {
|
||||
wrapper: Reflector::new(),
|
||||
reflector_: Reflector::new(),
|
||||
rects: rects
|
||||
};
|
||||
list.init_wrapper(cx, scope);
|
||||
|
@ -51,7 +51,7 @@ impl ClientRectList {
|
|||
impl Reflectable for ClientRectList {
|
||||
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