mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +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
|
@ -11,20 +11,20 @@ use js::jsapi::{JSContext, JSObject};
|
|||
use std::cast;
|
||||
|
||||
pub struct Blob {
|
||||
wrapper: Reflector
|
||||
reflector_: Reflector
|
||||
}
|
||||
|
||||
impl Blob {
|
||||
pub fn new() -> @mut Blob {
|
||||
@mut Blob {
|
||||
wrapper: Reflector::new()
|
||||
reflector_: Reflector::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Blob {
|
||||
fn reflector(&mut self) -> &mut Reflector {
|
||||
unsafe { cast::transmute(&self.wrapper) }
|
||||
unsafe { cast::transmute(&self.reflector_) }
|
||||
}
|
||||
|
||||
fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue