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/nodelist.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/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 391d21d5865..21e05fc7dcc 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -5,7 +5,7 @@ use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods; use dom::bindings::codegen::Bindings::NodeListBinding; use dom::bindings::codegen::Bindings::NodeListBinding::NodeListMethods; -use dom::bindings::js::{JS, MutNullableHeap, Root, RootedReference}; +use dom::bindings::js::{JS, MutNullableJS, Root, RootedReference}; use dom::bindings::reflector::{Reflector, reflect_dom_object}; use dom::node::{ChildrenMutation, Node}; use dom::window::Window; @@ -111,7 +111,7 @@ impl NodeList { pub struct ChildrenList { node: JS<Node>, #[ignore_heap_size_of = "Defined in rust-mozjs"] - last_visited: MutNullableHeap<JS<Node>>, + last_visited: MutNullableJS<Node>, last_index: Cell<u32>, } @@ -120,7 +120,7 @@ impl ChildrenList { let last_visited = node.GetFirstChild(); ChildrenList { node: JS::from_ref(node), - last_visited: MutNullableHeap::new(last_visited.r()), + last_visited: MutNullableJS::new(last_visited.r()), last_index: Cell::new(0u32), } } |