diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-11-14 13:31:51 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-11-14 21:18:43 +0100 |
commit | 86d609abaf7bf980a55916b90add2795cc11bf17 (patch) | |
tree | e5c88750bcd530c5506f3f2848c1df86ad494df4 /components/script/dom/document.rs | |
parent | c0016c74386bc2af6beb2091bcf3c3d3953f2119 (diff) | |
download | servo-86d609abaf7bf980a55916b90add2795cc11bf17.tar.gz servo-86d609abaf7bf980a55916b90add2795cc11bf17.zip |
Use RefCell in DOMRefCell to reduce duplicated code.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index b5a39073dad..2b8632fd7c1 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::attr::AttrHelpers; -use dom::bindings::cell::{DOMRefCell, Ref}; +use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::DocumentBinding; use dom::bindings::codegen::Bindings::DocumentBinding::{DocumentMethods, DocumentReadyState}; use dom::bindings::codegen::Bindings::DocumentBinding::DocumentReadyStateValues; @@ -65,7 +65,7 @@ use url::Url; use std::collections::HashMap; use std::collections::hash_map::{Vacant, Occupied}; use std::ascii::AsciiExt; -use std::cell::Cell; +use std::cell::{Cell, Ref}; use std::default::Default; use time; |