aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-11 22:59:53 -0600
committerConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-13 09:59:51 -0600
commit5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9 (patch)
treebf0e8ffcff9acc0a8bbd342ecc16ba2acde2f78b /components/script/dom/htmlformelement.rs
parentafc0ccb48d03cfacec06b9c6d6be3626b46ff793 (diff)
downloadservo-5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9.tar.gz
servo-5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9.zip
Make all task source runnables cancellable
Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 4cd367d5032..eb23c52c775 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -53,7 +53,6 @@ use string_cache::Atom;
use style::attr::AttrValue;
use style::str::split_html_space_chars;
use task_source::TaskSource;
-use task_source::dom_manipulation::DOMManipulationTask;
use url::form_urlencoded;
#[derive(JSTraceable, PartialEq, Clone, Copy, HeapSizeOf)]
@@ -475,7 +474,7 @@ impl HTMLFormElement {
self.generation_id.set(GenerationId(prev_id + 1));
// Step 2
- let nav = box PlannedNavigation {
+ let nav = PlannedNavigation {
load_data: load_data,
pipeline_id: window.pipeline(),
script_chan: window.main_thread_script_chan().clone(),
@@ -484,7 +483,7 @@ impl HTMLFormElement {
};
// Step 3
- window.dom_manipulation_task_source().queue(DOMManipulationTask(nav)).unwrap();
+ window.dom_manipulation_task_source().queue(nav, window).unwrap();
}
/// Interactively validate the constraints of form elements