mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Reformat some task-related functions
This commit is contained in:
parent
35a7252254
commit
53d30d85b3
3 changed files with 28 additions and 20 deletions
|
@ -25,11 +25,14 @@ impl fmt::Debug for DOMManipulationTaskSource {
|
|||
}
|
||||
|
||||
impl TaskSource for DOMManipulationTaskSource {
|
||||
fn queue_with_wrapper<T>(&self,
|
||||
msg: Box<T>,
|
||||
wrapper: &RunnableWrapper)
|
||||
-> Result<(), ()>
|
||||
where T: Runnable + Send + 'static {
|
||||
fn queue_with_wrapper<T>(
|
||||
&self,
|
||||
msg: Box<T>,
|
||||
wrapper: &RunnableWrapper,
|
||||
) -> Result<(), ()>
|
||||
where
|
||||
T: Runnable + Send + 'static,
|
||||
{
|
||||
let msg = MainThreadScriptMsg::Common(CommonScriptMsg::RunnableMsg(
|
||||
ScriptThreadEventCategory::ScriptEvent,
|
||||
wrapper.wrap_runnable(msg),
|
||||
|
|
|
@ -25,11 +25,14 @@ impl fmt::Debug for UserInteractionTaskSource {
|
|||
}
|
||||
|
||||
impl TaskSource for UserInteractionTaskSource {
|
||||
fn queue_with_wrapper<T>(&self,
|
||||
msg: Box<T>,
|
||||
wrapper: &RunnableWrapper)
|
||||
-> Result<(), ()>
|
||||
where T: Runnable + Send + 'static {
|
||||
fn queue_with_wrapper<T>(
|
||||
&self,
|
||||
msg: Box<T>,
|
||||
wrapper: &RunnableWrapper,
|
||||
) -> Result<(), ()>
|
||||
where
|
||||
T: Runnable + Send + 'static,
|
||||
{
|
||||
let msg = MainThreadScriptMsg::Common(CommonScriptMsg::RunnableMsg(
|
||||
ScriptThreadEventCategory::InputEvent,
|
||||
wrapper.wrap_runnable(msg),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue