aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/document.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2013-10-08 20:04:29 +0200
committerBobby Holley <bobbyholley@gmail.com>2013-10-09 12:03:18 +0200
commit0a0599ad9b0c8723e94bd0889cda00d87250c64d (patch)
treed5177ad670d0f1c50c6c58d863f40619e4d48114 /src/components/script/dom/document.rs
parent77f8dba48b21e200b4b9c6d35db853581b9804bc (diff)
downloadservo-0a0599ad9b0c8723e94bd0889cda00d87250c64d.tar.gz
servo-0a0599ad9b0c8723e94bd0889cda00d87250c64d.zip
Rename CacheableWrapper to Reflectable.
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r--src/components/script/dom/document.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs
index 84643ddb55a..ce5f4fbc35f 100644
--- a/src/components/script/dom/document.rs
+++ b/src/components/script/dom/document.rs
@@ -4,7 +4,7 @@
use dom::bindings::codegen::DocumentBinding;
use dom::bindings::utils::{DOMString, WrapperCache, ErrorResult, Fallible};
-use dom::bindings::utils::{BindingObject, CacheableWrapper, DerivedWrapper};
+use dom::bindings::utils::{BindingObject, Reflectable, DerivedWrapper};
use dom::bindings::utils::{is_valid_element_name, InvalidCharacter, Traceable, null_str_as_empty};
use dom::element::{Element};
use dom::element::{HTMLHtmlElementTypeId, HTMLHeadElementTypeId, HTMLTitleElementTypeId};
@@ -131,7 +131,7 @@ impl WrappableDocument for Document {
}
}
-impl CacheableWrapper for AbstractDocument {
+impl Reflectable for AbstractDocument {
fn get_wrappercache(&mut self) -> &mut WrapperCache {
do self.with_mut_base |doc| {
doc.get_wrappercache()
@@ -152,7 +152,7 @@ impl CacheableWrapper for AbstractDocument {
}
impl BindingObject for AbstractDocument {
- fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
+ fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
do self.with_mut_base |doc| {
doc.GetParentObject(cx)
}
@@ -174,7 +174,7 @@ impl DerivedWrapper for AbstractDocument {
}
-impl CacheableWrapper for Document {
+impl Reflectable for Document {
fn get_wrappercache(&mut self) -> &mut WrapperCache {
unsafe {
cast::transmute(&self.wrapper)
@@ -188,9 +188,9 @@ impl CacheableWrapper for Document {
}
impl BindingObject for Document {
- fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut CacheableWrapper> {
+ fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut Reflectable> {
match self.window {
- Some(win) => Some(win as @mut CacheableWrapper),
+ Some(win) => Some(win as @mut Reflectable),
None => None
}
}