diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-08 10:03:35 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-08 10:17:23 +0200 |
commit | 35a725225468631517b993afbcde4f58c88288c6 (patch) | |
tree | b974cda2ed97e2008cb6da59aaf054b389f4ec27 /components/script/script_thread.rs | |
parent | 9252f2b8a2b310993530b083d1ee321a34804f09 (diff) | |
download | servo-35a725225468631517b993afbcde4f58c88288c6.tar.gz servo-35a725225468631517b993afbcde4f58c88288c6.zip |
Kill UserInteractionTask
Just use a bare Runnable value.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 3062f57e8b5..8ef650ecee9 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -119,7 +119,7 @@ use task_source::file_reading::FileReadingTaskSource; use task_source::history_traversal::HistoryTraversalTaskSource; use task_source::networking::NetworkingTaskSource; use task_source::performance_timeline::PerformanceTimelineTaskSource; -use task_source::user_interaction::{UserInteractionTask, UserInteractionTaskSource}; +use task_source::user_interaction::UserInteractionTaskSource; use time::{get_time, precise_time_ns, Tm}; use url::Position; use webdriver_handlers; @@ -276,8 +276,6 @@ pub enum MainThreadScriptMsg { /// dispatched to ScriptThread). Allows for a replace bool to be passed. If true, /// the current entry will be replaced instead of a new entry being added. Navigate(PipelineId, LoadData, bool), - /// Tasks that originate from the user interaction task source - UserInteraction(UserInteractionTask), /// Notifies the script thread that a new worklet has been loaded, and thus the page should be /// reflowed. WorkletLoaded(PipelineId), @@ -1296,8 +1294,6 @@ impl ScriptThread { self.collect_reports(reports_chan), MainThreadScriptMsg::WorkletLoaded(pipeline_id) => self.handle_worklet_loaded(pipeline_id), - MainThreadScriptMsg::UserInteraction(task) => - task.handle_task(self), } } |