mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Rename the element field of the DOM Node hierarchy
Renamed htmlelement, and element Fixes #924
This commit is contained in:
parent
0ca4c19b57
commit
2dbd065d91
77 changed files with 347 additions and 312 deletions
|
@ -11,13 +11,13 @@ use js::jsapi::{JSObject, JSContext, JSVal};
|
|||
use js::JSVAL_NULL;
|
||||
|
||||
pub struct HTMLElement {
|
||||
parent: Element
|
||||
element: Element
|
||||
}
|
||||
|
||||
impl HTMLElement {
|
||||
pub fn new(type_id: ElementTypeId, tag_name: ~str) -> HTMLElement {
|
||||
HTMLElement {
|
||||
parent: Element::new(type_id, tag_name)
|
||||
element: Element::new(type_id, tag_name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ impl HTMLElement {
|
|||
|
||||
impl CacheableWrapper for HTMLElement {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
self.parent.get_wrappercache()
|
||||
self.element.get_wrappercache()
|
||||
}
|
||||
|
||||
fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {
|
||||
|
@ -161,6 +161,6 @@ impl CacheableWrapper for HTMLElement {
|
|||
|
||||
impl BindingObject for HTMLElement {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
|
||||
self.parent.GetParentObject(cx)
|
||||
self.element.GetParentObject(cx)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue