mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove pointless phantom arguments to ScriptThreadFactory and LayoutThreadFactory.
This commit is contained in:
parent
bcea0ada27
commit
9ee8c33a8d
5 changed files with 49 additions and 54 deletions
|
@ -346,15 +346,13 @@ pub struct ScriptControlChan(pub IpcSender<ConstellationControlMsg>);
|
|||
/// crate.
|
||||
pub trait ScriptThreadFactory {
|
||||
/// Create a `ScriptThread`.
|
||||
fn create(_phantom: Option<&mut Self>,
|
||||
state: InitialScriptState,
|
||||
fn create(state: InitialScriptState,
|
||||
layout_chan: &OpaqueScriptLayoutChannel,
|
||||
load_data: LoadData);
|
||||
/// Create a script -> layout channel (`Sender`, `Receiver` pair).
|
||||
fn create_layout_channel(_phantom: Option<&mut Self>) -> OpaqueScriptLayoutChannel;
|
||||
fn create_layout_channel() -> OpaqueScriptLayoutChannel;
|
||||
/// Clone the `Sender` in `pair`.
|
||||
fn clone_layout_channel(_phantom: Option<&mut Self>, pair: &OpaqueScriptLayoutChannel)
|
||||
-> Box<Any + Send>;
|
||||
fn clone_layout_channel(pair: &OpaqueScriptLayoutChannel) -> Box<Any + Send>;
|
||||
}
|
||||
|
||||
/// Messages sent from the script thread to the compositor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue