mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use DOMRefCell for Node.
Altough LayoutDataRef is touched, we don't use DOMRefCell in it becasuse it's expected to manipulate in other task.
This commit is contained in:
parent
d8c4588f0e
commit
7e7c610837
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
//! The core DOM types. Defines the basic DOM hierarchy as well as all the HTML elements.
|
||||
|
||||
use dom::attr::{Attr, AttrHelpers};
|
||||
use dom::bindings::cell::DOMRefCell;
|
||||
use dom::bindings::codegen::Bindings::CharacterDataBinding::CharacterDataMethods;
|
||||
use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods;
|
||||
use dom::bindings::codegen::Bindings::ElementBinding::ElementMethods;
|
||||
|
@ -110,7 +111,7 @@ pub struct Node {
|
|||
/// node is finalized.
|
||||
layout_data: LayoutDataRef,
|
||||
|
||||
unique_id: RefCell<String>,
|
||||
unique_id: DOMRefCell<String>,
|
||||
}
|
||||
|
||||
impl NodeDerived for EventTarget {
|
||||
|
@ -1155,7 +1156,7 @@ impl Node {
|
|||
|
||||
layout_data: LayoutDataRef::new(),
|
||||
|
||||
unique_id: RefCell::new("".to_string()),
|
||||
unique_id: DOMRefCell::new("".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue