aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/storage.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/storage.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/storage.rs')
-rw-r--r--components/script/dom/storage.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs
index d44f9684027..20b5d4924a8 100644
--- a/components/script/dom/storage.rs
+++ b/components/script/dom/storage.rs
@@ -19,7 +19,6 @@ use net_traits::IpcSend;
use net_traits::storage_thread::{StorageThreadMsg, StorageType};
use script_thread::{Runnable, ScriptThread};
use task_source::TaskSource;
-use task_source::dom_manipulation::DOMManipulationTask;
use url::Url;
#[dom_struct]
@@ -159,10 +158,10 @@ impl Storage {
new_value: Option<String>) {
let global_root = self.global();
let global_ref = global_root.r();
- let task_source = global_ref.as_window().dom_manipulation_task_source();
+ let window = global_ref.as_window();
+ let task_source = window.dom_manipulation_task_source();
let trusted_storage = Trusted::new(self);
- task_source.queue(DOMManipulationTask(
- box StorageEventRunnable::new(trusted_storage, key, old_value, new_value))).unwrap();
+ task_source.queue(StorageEventRunnable::new(trusted_storage, key, old_value, new_value), window).unwrap();
}
}