mirror of
https://github.com/servo/servo.git
synced 2025-10-09 21:10:19 +01:00
Rename CacheableWrapper to Reflectable.
This commit is contained in:
parent
77f8dba48b
commit
0a0599ad9b
30 changed files with 96 additions and 96 deletions
|
@ -4,14 +4,14 @@
|
|||
|
||||
use dom::types::*;
|
||||
use dom::bindings::codegen::*;
|
||||
use dom::bindings::utils::{BindingObject, WrapperCache, CacheableWrapper, Traceable};
|
||||
use dom::bindings::utils::{BindingObject, WrapperCache, Reflectable, Traceable};
|
||||
use dom::node::ScriptView;
|
||||
|
||||
use js::jsapi::{JSContext, JSObject, JSTracer};
|
||||
|
||||
macro_rules! generate_cacheable_wrapper(
|
||||
($name: path, $wrap: path) => (
|
||||
impl CacheableWrapper for $name {
|
||||
impl Reflectable for $name {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
self.element.get_wrappercache()
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ macro_rules! generate_cacheable_wrapper(
|
|||
|
||||
macro_rules! generate_cacheable_wrapper_htmlelement(
|
||||
($name: path, $wrap: path) => (
|
||||
impl CacheableWrapper for $name {
|
||||
impl Reflectable for $name {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
self.htmlelement.get_wrappercache()
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ macro_rules! generate_cacheable_wrapper_htmlelement(
|
|||
|
||||
macro_rules! generate_cacheable_wrapper_node(
|
||||
($name: path, $wrap: path) => (
|
||||
impl CacheableWrapper for $name {
|
||||
impl Reflectable for $name {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
self.node.get_wrappercache()
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ macro_rules! generate_cacheable_wrapper_node(
|
|||
macro_rules! generate_binding_object(
|
||||
($name: path) => (
|
||||
impl BindingObject for $name {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
self.element.GetParentObject(cx)
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ macro_rules! generate_binding_object(
|
|||
macro_rules! generate_binding_object_htmlelement(
|
||||
($name: path) => (
|
||||
impl BindingObject for $name {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
self.htmlelement.GetParentObject(cx)
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ macro_rules! generate_binding_object_htmlelement(
|
|||
macro_rules! generate_binding_object_node(
|
||||
($name: path) => (
|
||||
impl BindingObject for $name {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
self.node.GetParentObject(cx)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue