mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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.
This commit is contained in:
parent
f7d53b7bc1
commit
1327ebd52f
64 changed files with 251 additions and 271 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue