aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2013-10-08 20:31:24 +0200
committerBobby Holley <bobbyholley@gmail.com>2013-10-09 12:07:41 +0200
commit2cbe2d7ce914d2bb371c62aff19c08a0b522661b (patch)
tree59f0a1e72defb2d262cbf3deca21bb378ceabf34 /src/components/script/dom/htmlcollection.rs
parent0a0599ad9b0c8723e94bd0889cda00d87250c64d (diff)
downloadservo-2cbe2d7ce914d2bb371c62aff19c08a0b522661b.tar.gz
servo-2cbe2d7ce914d2bb371c62aff19c08a0b522661b.zip
Rename WrapperCache to Reflector.
I think the abstraction from the raw JSObject is still probably worthwhile for now.
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r--src/components/script/dom/htmlcollection.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs
index bcc68145010..c58d9d15b59 100644
--- a/src/components/script/dom/htmlcollection.rs
+++ b/src/components/script/dom/htmlcollection.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::HTMLCollectionBinding;
-use dom::bindings::utils::{Reflectable, BindingObject, WrapperCache};
+use dom::bindings::utils::{Reflectable, BindingObject, Reflector};
use dom::bindings::utils::{DOMString, Fallible};
use dom::node::{AbstractNode, ScriptView};
use script_task::page_from_context;
@@ -15,14 +15,14 @@ use std::ptr;
pub struct HTMLCollection {
elements: ~[AbstractNode<ScriptView>],
- wrapper: WrapperCache
+ wrapper: Reflector
}
impl HTMLCollection {
pub fn new(elements: ~[AbstractNode<ScriptView>], cx: *JSContext, scope: *JSObject) -> @mut HTMLCollection {
let collection = @mut HTMLCollection {
elements: elements,
- wrapper: WrapperCache::new()
+ wrapper: Reflector::new()
};
collection.init_wrapper(cx, scope);
collection
@@ -69,7 +69,7 @@ impl BindingObject for HTMLCollection {
}
impl Reflectable for HTMLCollection {
- fn get_wrappercache(&mut self) -> &mut WrapperCache {
+ fn get_wrappercache(&mut self) -> &mut Reflector {
unsafe {
cast::transmute(&self.wrapper)
}