From 1e6a2f08fc825c0179f44129485e6ef332ef8c33 Mon Sep 17 00:00:00 2001 From: benshu Date: Sun, 23 Aug 2015 21:02:40 +0200 Subject: Time distribution across script event categories. --- components/script/dom/htmlscriptelement.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/script/dom/htmlscriptelement.rs') diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 6cd2c7edcfc..8e55f323796 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -32,6 +32,7 @@ use dom::window::ScriptHelpers; use js::jsapi::RootedValue; use js::jsval::UndefinedValue; use network_listener::{NetworkListener, PreInvoke}; +use script_task::ScriptTaskEventCategory::ScriptEvent; use script_task::{ScriptChan, Runnable, CommonScriptMsg}; use encoding::all::UTF_8; @@ -426,7 +427,7 @@ impl HTMLScriptElement { element: handler, is_error: false, }; - chan.send(CommonScriptMsg::RunnableMsg(dispatcher)).unwrap(); + chan.send(CommonScriptMsg::RunnableMsg(ScriptEvent, dispatcher)).unwrap(); } } @@ -439,7 +440,7 @@ impl HTMLScriptElement { element: handler, is_error: true, }; - chan.send(CommonScriptMsg::RunnableMsg(dispatcher)).unwrap(); + chan.send(CommonScriptMsg::RunnableMsg(ScriptEvent, dispatcher)).unwrap(); } pub fn dispatch_before_script_execute_event(&self) -> bool { -- cgit v1.2.3