aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-09 05:40:12 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-09 05:40:12 -0700
commit89dd9dd8eb2e473dffd5ad2d5d75012b15f75570 (patch)
tree1d63567326f11a080eada45292ab09a15115f4bc /src/components/script/dom/htmlcollection.rs
parent77f8dba48b21e200b4b9c6d35db853581b9804bc (diff)
parent5ed8b9e83f960918d3f5f76efbf2706689c4160e (diff)
downloadservo-89dd9dd8eb2e473dffd5ad2d5d75012b15f75570.tar.gz
servo-89dd9dd8eb2e473dffd5ad2d5d75012b15f75570.zip
auto merge of #1028 : bholley/servo/reflector_rename, r=jdm
There are still a few instances of "wrapper"-ish names scattered throughout the code, but this is a good start.
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r--src/components/script/dom/htmlcollection.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs
index a16b2090355..c9e51454ab7 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::{CacheableWrapper, 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
+ reflector_: Reflector
}
impl HTMLCollection {
pub fn new(elements: ~[AbstractNode<ScriptView>], cx: *JSContext, scope: *JSObject) -> @mut HTMLCollection {
let collection = @mut HTMLCollection {
elements: elements,
- wrapper: WrapperCache::new()
+ reflector_: Reflector::new()
};
collection.init_wrapper(cx, scope);
collection
@@ -59,19 +59,19 @@ impl HTMLCollection {
}
impl BindingObject for HTMLCollection {
- fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
+ fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
let page = page_from_context(cx);
// TODO(tkuehn): This only handles the top-level frame. Need to grab subframes.
unsafe {
- Some((*page).frame.get_ref().window as @mut CacheableWrapper)
+ Some((*page).frame.get_ref().window as @mut Reflectable)
}
}
}
-impl CacheableWrapper for HTMLCollection {
- fn get_wrappercache(&mut self) -> &mut WrapperCache {
+impl Reflectable for HTMLCollection {
+ fn reflector(&mut self) -> &mut Reflector {
unsafe {
- cast::transmute(&self.wrapper)
+ cast::transmute(&self.reflector_)
}
}