aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorRavi Shankar <wafflespeanut@gmail.com>2015-08-15 02:00:48 +0530
committerRavi Shankar <wafflespeanut@gmail.com>2015-08-15 02:00:48 +0530
commit89153116fb4b9d1043cc413f2546be728665686e (patch)
tree09c1b1dba283263122f02b7ab547f3964fbf04cf /components/script/dom/htmlformelement.rs
parent42d74324e22be0f105d2412938df8b05c20feff6 (diff)
downloadservo-89153116fb4b9d1043cc413f2546be728665686e.tar.gz
servo-89153116fb4b9d1043cc413f2546be728665686e.zip
Splitting ScriptMsg into various enums; r=jdm
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 920d5d326b0..34ed5bddd5d 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -34,7 +34,7 @@ use hyper::header::ContentType;
use hyper::mime;
use msg::constellation_msg::LoadData;
use util::str::DOMString;
-use script_task::{ScriptChan, ScriptMsg};
+use script_task::{ScriptChan, MainThreadScriptMsg};
use url::UrlParser;
use url::form_urlencoded::serialize;
use string_cache::Atom;
@@ -232,7 +232,8 @@ impl<'a> HTMLFormElementHelpers for &'a HTMLFormElement {
}
// This is wrong. https://html.spec.whatwg.org/multipage/#planned-navigation
- win.r().script_chan().send(ScriptMsg::Navigate(win.r().pipeline(), load_data)).unwrap();
+ win.r().main_thread_script_chan().send(MainThreadScriptMsg::Navigate(
+ win.r().pipeline(), load_data)).unwrap();
}
fn get_form_dataset<'b>(self, submitter: Option<FormSubmitter<'b>>) -> Vec<FormDatum> {