From 5865d5f71776336d8f55dcb326d1fb24279bbf63 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 10 Mar 2015 21:13:41 -0700 Subject: [PATCH] Rename LayoutTask::handle_script_request. Because it handles requests from tasks other than the Script Task. --- components/layout/layout_task.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 9cf20fedc11..5d1ab5781f8 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -361,13 +361,13 @@ impl LayoutTask { PortToRead::Pipeline => { match self.pipeline_port.recv().unwrap() { LayoutControlMsg::ExitNowMsg(exit_type) => { - self.handle_script_request(Msg::ExitNow(exit_type), possibly_locked_rw_data) + self.handle_request_helper(Msg::ExitNow(exit_type), possibly_locked_rw_data) } } }, PortToRead::Script => { let msg = self.port.recv().unwrap(); - self.handle_script_request(msg, possibly_locked_rw_data) + self.handle_request_helper(msg, possibly_locked_rw_data) } } } @@ -398,8 +398,8 @@ impl LayoutTask { } } - /// Receives and dispatches messages from the script task. - fn handle_script_request<'a>(&'a self, + /// Receives and dispatches messages from other tasks. + fn handle_request_helper<'a>(&'a self, request: Msg, possibly_locked_rw_data: &mut Option>)