Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects.

This commit is contained in:
Bobby Holley 2013-10-09 12:01:12 +02:00
parent 92e91c58da
commit 5ed8b9e83f
16 changed files with 46 additions and 46 deletions

View file

@ -92,7 +92,7 @@ pub enum DocumentType {
pub struct Document {
root: Option<AbstractNode<ScriptView>>,
wrapper: Reflector,
reflector_: Reflector,
window: Option<@mut Window>,
doctype: DocumentType,
title: ~str
@ -103,7 +103,7 @@ impl Document {
pub fn new(window: Option<@mut Window>, doctype: DocumentType) -> Document {
Document {
root: None,
wrapper: Reflector::new(),
reflector_: Reflector::new(),
window: window,
doctype: doctype,
title: ~""
@ -175,7 +175,7 @@ impl DerivedWrapper for AbstractDocument {
impl Reflectable for Document {
fn reflector(&mut self) -> &mut Reflector {
unsafe {
cast::transmute(&self.wrapper)
cast::transmute(&self.reflector_)
}
}
@ -502,7 +502,7 @@ impl Traceable for Document {
debug!("tracing root node");
do root.with_base |node| {
JS_CallTracer(tracer as *JSTracer,
node.wrapper.object,
node.reflector_.object,
JSTRACE_OBJECT as u32);
}
}