mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Rename LayoutTask::handle_script_request.
Because it handles requests from tasks other than the Script Task.
This commit is contained in:
parent
1092ca1019
commit
5865d5f717
1 changed files with 4 additions and 4 deletions
|
@ -361,13 +361,13 @@ impl LayoutTask {
|
||||||
PortToRead::Pipeline => {
|
PortToRead::Pipeline => {
|
||||||
match self.pipeline_port.recv().unwrap() {
|
match self.pipeline_port.recv().unwrap() {
|
||||||
LayoutControlMsg::ExitNowMsg(exit_type) => {
|
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 => {
|
PortToRead::Script => {
|
||||||
let msg = self.port.recv().unwrap();
|
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.
|
/// Receives and dispatches messages from other tasks.
|
||||||
fn handle_script_request<'a>(&'a self,
|
fn handle_request_helper<'a>(&'a self,
|
||||||
request: Msg,
|
request: Msg,
|
||||||
possibly_locked_rw_data: &mut Option<MutexGuard<'a,
|
possibly_locked_rw_data: &mut Option<MutexGuard<'a,
|
||||||
LayoutTaskData>>)
|
LayoutTaskData>>)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue