Rename Task to TaskBox

This commit is contained in:
Anthony Ramine 2017-09-20 09:59:52 +02:00
parent f088b708c9
commit 52527d6f9d
19 changed files with 71 additions and 69 deletions

View file

@ -69,7 +69,7 @@ use std::thread;
use style::thread_state;
use swapper::Swapper;
use swapper::swapper;
use task::Task;
use task::TaskBox;
use uuid::Uuid;
// Magic numbers
@ -647,7 +647,7 @@ impl WorkletThread {
/// Run a task in the main script thread.
fn run_in_script_thread<T>(&self, task: T)
where
T: Task + 'static,
T: TaskBox + 'static,
{
let msg = CommonScriptMsg::Task(ScriptThreadEventCategory::WorkletEvent, box task);
let msg = MainThreadScriptMsg::Common(msg);