Rename the element field of the DOM Node hierarchy

Renamed htmlelement, and element

Fixes #924
This commit is contained in:
Luis de Bethencourt 2013-09-19 18:05:48 -04:00
parent 0ca4c19b57
commit 2dbd065d91
77 changed files with 347 additions and 312 deletions

View file

@ -8,7 +8,7 @@ use dom::htmlelement::HTMLElement;
use js::jsapi::{JSObject, JSContext};
pub struct HTMLMapElement {
parent: HTMLElement
htmlelement: HTMLElement
}
impl HTMLMapElement {
@ -21,7 +21,7 @@ impl HTMLMapElement {
}
fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
let doc = self.parent.parent.parent.owner_doc.unwrap();
let doc = self.htmlelement.element.element.owner_doc.unwrap();
let win = doc.with_base(|doc| doc.window.unwrap());
let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
let cache = win.get_wrappercache();