aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/attr.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-11-14 13:31:51 +0100
committerMs2ger <ms2ger@gmail.com>2014-11-14 21:18:43 +0100
commit86d609abaf7bf980a55916b90add2795cc11bf17 (patch)
treee5c88750bcd530c5506f3f2848c1df86ad494df4 /components/script/dom/attr.rs
parentc0016c74386bc2af6beb2091bcf3c3d3953f2119 (diff)
downloadservo-86d609abaf7bf980a55916b90add2795cc11bf17.tar.gz
servo-86d609abaf7bf980a55916b90add2795cc11bf17.zip
Use RefCell in DOMRefCell to reduce duplicated code.
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r--components/script/dom/attr.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index 324d17d6e14..95e05f8e79d 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use dom::bindings::cell::{DOMRefCell, Ref};
+use dom::bindings::cell::DOMRefCell;
use dom::bindings::codegen::Bindings::AttrBinding;
use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods;
use dom::bindings::codegen::InheritTypes::NodeCast;
@@ -16,9 +16,12 @@ use dom::virtualmethods::vtable_for;
use devtools_traits::AttrInfo;
use servo_util::str::{DOMString, split_html_space_chars};
-use std::mem;
+
use string_cache::{Atom, Namespace};
+use std::cell::Ref;
+use std::mem;
+
pub enum AttrSettingType {
FirstSetAttr,
ReplacedAttr,