mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Time distribution across script event categories.
This commit is contained in:
parent
71b277d567
commit
1e6a2f08fc
11 changed files with 184 additions and 50 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue