aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-08 10:19:06 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-08 10:19:06 +0200
commit53d30d85b3489b78370c25d404c1095cd6104119 (patch)
treeca0f2cb8c01c3a7f0dfa6c266b25a660feff2ef2 /components/script/script_thread.rs
parent35a725225468631517b993afbcde4f58c88288c6 (diff)
downloadservo-53d30d85b3489b78370c25d404c1095cd6104119.tar.gz
servo-53d30d85b3489b78370c25d404c1095cd6104119.zip
Reformat some task-related functions
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs22
1 files changed, 12 insertions, 10 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 8ef650ecee9..1a69c10dcfa 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1281,19 +1281,21 @@ impl ScriptThread {
fn handle_msg_from_script(&self, msg: MainThreadScriptMsg) {
match msg {
- MainThreadScriptMsg::Navigate(parent_pipeline_id, load_data, replace) =>
- self.handle_navigate(parent_pipeline_id, None, load_data, replace),
- MainThreadScriptMsg::ExitWindow(id) =>
- self.handle_exit_window_msg(id),
+ MainThreadScriptMsg::Navigate(parent_pipeline_id, load_data, replace) => {
+ self.handle_navigate(parent_pipeline_id, None, load_data, replace)
+ },
+ MainThreadScriptMsg::ExitWindow(id) => {
+ self.handle_exit_window_msg(id)
+ },
MainThreadScriptMsg::Common(CommonScriptMsg::RunnableMsg(_, runnable)) => {
- // The category of the runnable is ignored by the pattern, however
- // it is still respected by profiling (see categorize_msg).
runnable.main_thread_handler(self)
}
- MainThreadScriptMsg::Common(CommonScriptMsg::CollectReports(reports_chan)) =>
- self.collect_reports(reports_chan),
- MainThreadScriptMsg::WorkletLoaded(pipeline_id) =>
- self.handle_worklet_loaded(pipeline_id),
+ MainThreadScriptMsg::Common(CommonScriptMsg::CollectReports(chan)) => {
+ self.collect_reports(chan)
+ },
+ MainThreadScriptMsg::WorkletLoaded(pipeline_id) => {
+ self.handle_worklet_loaded(pipeline_id)
+ },
}
}