From e286fdcc536df0cae9020a677380ffe2fa494566 Mon Sep 17 00:00:00 2001 From: Agustin Chiappe Berrini Date: Sun, 2 Sep 2018 08:18:22 -0400 Subject: Add the TaskSourceName to CommonScriptMsg::Task Update QueuedTaskConversion and the TaskQueue to use it --- components/script/script_runtime.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/script/script_runtime.rs') diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index b5d598d1c79..6758e3bd852 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -43,6 +43,7 @@ use std::panic::AssertUnwindSafe; use std::ptr; use style::thread_state::{self, ThreadState}; use task::TaskBox; +use task_source::TaskSourceName; use time::{Tm, now}; /// Common messages used to control the event loops in both the script and the worker @@ -51,14 +52,14 @@ pub enum CommonScriptMsg { /// supplied channel. CollectReports(ReportsChan), /// Generic message that encapsulates event handling. - Task(ScriptThreadEventCategory, Box, Option), + Task(ScriptThreadEventCategory, Box, Option, TaskSourceName), } impl fmt::Debug for CommonScriptMsg { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CommonScriptMsg::CollectReports(_) => write!(f, "CollectReports(...)"), - CommonScriptMsg::Task(ref category, ref task, _) => { + CommonScriptMsg::Task(ref category, ref task, _, _) => { f.debug_tuple("Task").field(category).field(task).finish() }, } -- cgit v1.2.3