aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-27 17:00:15 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-27 17:00:15 -0600
commit6431e8da43817e8a6b1e4757afbcf45c1a629707 (patch)
tree307811c06dc664ada5e711e050189009e12b834e /components/script/dom/htmlscriptelement.rs
parent71b277d5675556e61a82ae9dbf3105449c3a8275 (diff)
parent1e6a2f08fc825c0179f44129485e6ef332ef8c33 (diff)
downloadservo-6431e8da43817e8a6b1e4757afbcf45c1a629707.tar.gz
servo-6431e8da43817e8a6b1e4757afbcf45c1a629707.zip
Auto merge of #7341 - benschulz:script-profiling, r=Manishearth
Add profiling to the script event loop (#5331) I fear the category names are unimaginative; in some cases they may even be misleading or downright incorrect. Requests to rename categories as well as any other feedback are highly appreciated. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7341) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r--components/script/dom/htmlscriptelement.rs5
1 files changed, 3 insertions, 2 deletions
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 {