aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-12-16 20:29:20 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-12-17 18:07:12 -0800
commitbe69a503fec2a5cc5a5cbeb6341229e468c25ed2 (patch)
treea40565b25baedd37dc449d0e7c3a4c1e2fd039ca /src/components/script/dom/formdata.rs
parentda4cff034bcf44316f1c88ee163df9e6bd8e495f (diff)
downloadservo-be69a503fec2a5cc5a5cbeb6341229e468c25ed2.tar.gz
servo-be69a503fec2a5cc5a5cbeb6341229e468c25ed2.zip
script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
Diffstat (limited to 'src/components/script/dom/formdata.rs')
-rw-r--r--src/components/script/dom/formdata.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/formdata.rs b/src/components/script/dom/formdata.rs
index 1ee68db74fb..3722fb3e9ca 100644
--- a/src/components/script/dom/formdata.rs
+++ b/src/components/script/dom/formdata.rs
@@ -6,7 +6,7 @@ use dom::bindings::utils::{Fallible, Reflectable, Reflector, reflect_dom_object}
use dom::bindings::utils::DOMString;
use dom::bindings::codegen::FormDataBinding;
use dom::blob::Blob;
-use dom::node::{AbstractNode, ScriptView};
+use dom::node::AbstractNode;
use dom::window::Window;
use std::hashmap::HashMap;
@@ -20,11 +20,11 @@ pub struct FormData {
data: HashMap<~str, FormDatum>,
reflector_: Reflector,
window: @mut Window,
- form: Option<AbstractNode<ScriptView>>
+ form: Option<AbstractNode>
}
impl FormData {
- pub fn new_inherited(form: Option<AbstractNode<ScriptView>>, window: @mut Window) -> FormData {
+ pub fn new_inherited(form: Option<AbstractNode>, window: @mut Window) -> FormData {
FormData {
data: HashMap::new(),
reflector_: Reflector::new(),
@@ -33,12 +33,12 @@ impl FormData {
}
}
- pub fn new(form: Option<AbstractNode<ScriptView>>, window: @mut Window) -> @mut FormData {
+ pub fn new(form: Option<AbstractNode>, window: @mut Window) -> @mut FormData {
reflect_dom_object(@mut FormData::new_inherited(form, window), window, FormDataBinding::Wrap)
}
- pub fn Constructor(window: @mut Window,
- form: Option<AbstractNode<ScriptView>>) -> Fallible<@mut FormData> {
+ pub fn Constructor(window: @mut Window, form: Option<AbstractNode>)
+ -> Fallible<@mut FormData> {
Ok(FormData::new(form, window))
}