aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/formdata.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/formdata.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/formdata.rs')
-rw-r--r--components/script/dom/formdata.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs
index cd6dbf65143..7642ebab0d4 100644
--- a/components/script/dom/formdata.rs
+++ b/components/script/dom/formdata.rs
@@ -2,6 +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;
use dom::bindings::codegen::Bindings::FormDataBinding;
use dom::bindings::codegen::Bindings::FormDataBinding::FormDataMethods;
use dom::bindings::codegen::InheritTypes::FileCast;
@@ -14,7 +15,6 @@ use dom::blob::Blob;
use dom::file::File;
use dom::htmlformelement::HTMLFormElement;
use servo_util::str::DOMString;
-use std::cell::RefCell;
use std::collections::hashmap::HashMap;
#[deriving(Clone)]
@@ -27,7 +27,7 @@ pub enum FormDatum {
#[dom_struct]
pub struct FormData {
- data: RefCell<HashMap<DOMString, Vec<FormDatum>>>,
+ data: DOMRefCell<HashMap<DOMString, Vec<FormDatum>>>,
reflector_: Reflector,
global: GlobalField,
form: Option<JS<HTMLFormElement>>
@@ -36,7 +36,7 @@ pub struct FormData {
impl FormData {
fn new_inherited(form: Option<JSRef<HTMLFormElement>>, global: &GlobalRef) -> FormData {
FormData {
- data: RefCell::new(HashMap::new()),
+ data: DOMRefCell::new(HashMap::new()),
reflector_: Reflector::new(),
global: GlobalField::from_rooted(global),
form: form.map(|f| JS::from_rooted(f)),