mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Rename the node field of the DOM node hierarchy
Renamed the Node elements Fixes #924
This commit is contained in:
parent
2dbd065d91
commit
cfd726f7d6
9 changed files with 61 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue