diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-12-11 01:19:04 -1000 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-12-12 10:47:54 -1000 |
commit | 1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f (patch) | |
tree | caa0933e802d9cdb5791fb465a051be5cf8e05f7 /components/script/dom/node.rs | |
parent | f7d53b7bc18f10bac98b038c94f46f09fc02e002 (diff) | |
download | servo-1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f.tar.gz servo-1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f.zip |
Remove HeapGCValue
It could be used to have mutable JSVal fields without GC barriers.
With the removal of that trait, MutHeap and MutNullableHeap can respectively
be replaced by MutJS and MutNullableJS.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 983f11f478c..736020e360a 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -21,7 +21,7 @@ use dom::bindings::error::{Error, ErrorResult, Fallible}; use dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId}; use dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId}; use dom::bindings::inheritance::{SVGElementTypeId, SVGGraphicsElementTypeId}; -use dom::bindings::js::{JS, LayoutJS, MutNullableHeap}; +use dom::bindings::js::{JS, LayoutJS, MutNullableJS}; use dom::bindings::js::Root; use dom::bindings::js::RootedReference; use dom::bindings::reflector::{DomObject, reflect_dom_object}; @@ -95,25 +95,25 @@ pub struct Node { eventtarget: EventTarget, /// The parent of this node. - parent_node: MutNullableHeap<JS<Node>>, + parent_node: MutNullableJS<Node>, /// The first child of this node. - first_child: MutNullableHeap<JS<Node>>, + first_child: MutNullableJS<Node>, /// The last child of this node. - last_child: MutNullableHeap<JS<Node>>, + last_child: MutNullableJS<Node>, /// The next sibling of this node. - next_sibling: MutNullableHeap<JS<Node>>, + next_sibling: MutNullableJS<Node>, /// The previous sibling of this node. - prev_sibling: MutNullableHeap<JS<Node>>, + prev_sibling: MutNullableJS<Node>, /// The document that this node belongs to. - owner_doc: MutNullableHeap<JS<Document>>, + owner_doc: MutNullableJS<Document>, /// The live list of children return by .childNodes. - child_list: MutNullableHeap<JS<NodeList>>, + child_list: MutNullableJS<NodeList>, /// The live count of children of this node. children_count: Cell<u32>, @@ -1370,7 +1370,7 @@ impl Node { last_child: Default::default(), next_sibling: Default::default(), prev_sibling: Default::default(), - owner_doc: MutNullableHeap::new(doc), + owner_doc: MutNullableJS::new(doc), child_list: Default::default(), children_count: Cell::new(0u32), flags: Cell::new(flags), |