mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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,7 +4,7 @@
|
|||
|
||||
//! Element nodes.
|
||||
|
||||
use dom::bindings::utils::{BindingObject, CacheableWrapper, DOMString, ErrorResult, Fallible, WrapperCache};
|
||||
use dom::bindings::utils::{BindingObject, Reflectable, DOMString, ErrorResult, Fallible, WrapperCache};
|
||||
use dom::bindings::utils::{null_str_as_empty, null_str_as_empty_ref};
|
||||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::clientrect::ClientRect;
|
||||
|
@ -28,7 +28,7 @@ pub struct Element {
|
|||
style_attribute: Option<Stylesheet>,
|
||||
}
|
||||
|
||||
impl CacheableWrapper for Element {
|
||||
impl Reflectable for Element {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
self.node.get_wrappercache()
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ impl CacheableWrapper for Element {
|
|||
}
|
||||
|
||||
impl BindingObject for Element {
|
||||
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