mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use Traceable for NodeFlags
This commit is contained in:
parent
ee56b45a8c
commit
53d0e4ec04
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ use dom::bindings::error::{ErrorResult, Fallible, NotFound, HierarchyRequest, Sy
|
|||
use dom::bindings::js::{JS, JSRef, RootedReference, Temporary, Root, OptionalUnrootable};
|
||||
use dom::bindings::js::{OptionalSettable, TemporaryPushable, OptionalRootedRootable};
|
||||
use dom::bindings::js::{ResultRootable, OptionalRootable};
|
||||
use dom::bindings::trace::Untraceable;
|
||||
use dom::bindings::trace::Traceable;
|
||||
use dom::bindings::utils;
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::characterdata::{CharacterData, CharacterDataMethods};
|
||||
|
@ -87,7 +87,7 @@ pub struct Node {
|
|||
pub child_list: Cell<Option<JS<NodeList>>>,
|
||||
|
||||
/// A bitfield of flags for node items.
|
||||
flags: Untraceable<RefCell<NodeFlags>>,
|
||||
flags: Traceable<RefCell<NodeFlags>>,
|
||||
|
||||
/// Layout information. Only the layout task may touch this data.
|
||||
///
|
||||
|
@ -943,7 +943,7 @@ impl Node {
|
|||
owner_doc: Cell::new(doc.unrooted()),
|
||||
child_list: Cell::new(None),
|
||||
|
||||
flags: Untraceable::new(RefCell::new(NodeFlags::new(type_id))),
|
||||
flags: Traceable::new(RefCell::new(NodeFlags::new(type_id))),
|
||||
|
||||
layout_data: LayoutDataRef::new(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue