aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-10-22 07:54:36 -0600
committerbors-servo <metajack+bors@gmail.com>2014-10-22 07:54:36 -0600
commitf5e8df9dac9330f2818906c471ed05f5975828c6 (patch)
treec606085bb5266ae0dadfa8a4356bb63649fcbef4 /components/script/dom/node.rs
parent4b508195ace7490fda08f6d40fe64165feb91edd (diff)
parentf1c840de64885371b563e1dcda1ec9208d0f40c8 (diff)
downloadservo-f5e8df9dac9330f2818906c471ed05f5975828c6.tar.gz
servo-f5e8df9dac9330f2818906c471ed05f5975828c6.zip
auto merge of #3737 : saneyuki/servo/cell, r=jdm
#3050 Altough LayoutDataRef is touched from layout, we don't use DOMRefCell in it becasuse it's expected to manipulate in layout task.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 2743cf4b268..e1ff126f431 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -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()),
}
}