diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-05 13:35:10 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-05 13:46:01 +0530 |
commit | 5dde01ab5ac96f08133a14f8715b34385481fa13 (patch) | |
tree | 1a3c03197fa03d7ba7f7d59987d9cd07e7721dae /components/script | |
parent | e3eeb643f0b64107bcec01c9075f8bd9cefe58b3 (diff) | |
download | servo-5dde01ab5ac96f08133a14f8715b34385481fa13.tar.gz servo-5dde01ab5ac96f08133a14f8715b34385481fa13.zip |
Add Miscellaneous event type to DOM task source
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/task_source/dom_manipulation.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index daf212d8c52..fbe864a9005 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -52,7 +52,8 @@ pub enum DOMManipulationTask { // https://html.spec.whatwg.org/multipage/#planned-navigation PlannedNavigation(Box<Runnable + Send>), // https://html.spec.whatwg.org/multipage/#send-a-storage-notification - SendStorageNotification(Box<MainThreadRunnable + Send>) + SendStorageNotification(Box<MainThreadRunnable + Send>), + Miscellaneous(Box<Runnable + Send>), } impl DOMManipulationTask { @@ -72,7 +73,8 @@ impl DOMManipulationTask { FireToggleEvent(runnable) => runnable.handler(), MediaTask(runnable) => runnable.handler(), PlannedNavigation(runnable) => runnable.handler(), - SendStorageNotification(runnable) => runnable.handler(script_thread) + SendStorageNotification(runnable) => runnable.handler(script_thread), + Miscellaneous(runnable) => runnable.handler(), } } } |