Rename the node field of the DOM node hierarchy

Renamed the Node elements

Fixes #924
This commit is contained in:
Luis de Bethencourt 2013-09-19 19:01:58 -04:00
parent 2dbd065d91
commit cfd726f7d6
9 changed files with 61 additions and 26 deletions

View file

@ -16,7 +16,7 @@ pub struct HTMLFormElement {
impl HTMLFormElement {
fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
let doc = self.htmlelement.element.element.owner_doc.unwrap();
let doc = self.htmlelement.element.node.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();