aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/node.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/node.rs
parent77f8dba48b21e200b4b9c6d35db853581b9804bc (diff)
downloadservo-0a0599ad9b0c8723e94bd0889cda00d87250c64d.tar.gz
servo-0a0599ad9b0c8723e94bd0889cda00d87250c64d.zip
Rename CacheableWrapper to Reflectable.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r--src/components/script/dom/node.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index 155f9c390dd..3fd7b50a751 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -6,7 +6,7 @@
use dom::bindings::node;
use dom::bindings::utils::{WrapperCache, DOMString, ErrorResult, Fallible, NotFound, HierarchyRequest};
-use dom::bindings::utils::{BindingObject, CacheableWrapper, null_str_as_empty};
+use dom::bindings::utils::{BindingObject, Reflectable, null_str_as_empty};
use dom::characterdata::CharacterData;
use dom::document::AbstractDocument;
use dom::element::{Element, ElementTypeId, HTMLImageElementTypeId, HTMLIframeElementTypeId};
@@ -155,11 +155,11 @@ impl<View> TreeNode<AbstractNode<View>> for Node<View> { }
impl<'self, View> AbstractNode<View> {
// Unsafe accessors
- pub unsafe fn as_cacheable_wrapper(&self) -> @mut CacheableWrapper {
+ pub unsafe fn as_cacheable_wrapper(&self) -> @mut Reflectable {
match self.type_id() {
TextNodeTypeId => {
let node: @mut Text = cast::transmute(self.obj);
- node as @mut CacheableWrapper
+ node as @mut Reflectable
}
_ => {
fail!("unsupported node type")
@@ -789,7 +789,7 @@ impl VoidPtrLike for AbstractNode<LayoutView> {
}
}
-impl CacheableWrapper for Node<ScriptView> {
+impl Reflectable for Node<ScriptView> {
fn get_wrappercache(&mut self) -> &mut WrapperCache {
unsafe { cast::transmute(&mut self.wrapper) }
}
@@ -800,7 +800,7 @@ impl CacheableWrapper for Node<ScriptView> {
}
impl BindingObject for Node<ScriptView> {
- fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut CacheableWrapper> {
+ fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut Reflectable> {
match self.parent_node {
Some(node) => Some(unsafe {node.as_cacheable_wrapper()}),
None => None