mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Splitting ScriptMsg into various enums; r=jdm
This commit is contained in:
parent
42d74324e2
commit
89153116fb
18 changed files with 261 additions and 165 deletions
|
@ -33,7 +33,7 @@ use dom::servohtmlparser::ServoHTMLParserHelpers;
|
|||
use dom::virtualmethods::VirtualMethods;
|
||||
use dom::window::{WindowHelpers, ScriptHelpers};
|
||||
use network_listener::{NetworkListener, PreInvoke};
|
||||
use script_task::{ScriptChan, ScriptMsg, Runnable};
|
||||
use script_task::{ScriptChan, Runnable, CommonScriptMsg};
|
||||
use js::jsapi::RootedValue;
|
||||
use js::jsval::UndefinedValue;
|
||||
|
||||
|
@ -459,7 +459,7 @@ impl<'a> HTMLScriptElementHelpers for &'a HTMLScriptElement {
|
|||
element: handler,
|
||||
is_error: false,
|
||||
};
|
||||
chan.send(ScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
chan.send(CommonScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -472,7 +472,7 @@ impl<'a> HTMLScriptElementHelpers for &'a HTMLScriptElement {
|
|||
element: handler,
|
||||
is_error: true,
|
||||
};
|
||||
chan.send(ScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
chan.send(CommonScriptMsg::RunnableMsg(dispatcher)).unwrap();
|
||||
}
|
||||
|
||||
fn dispatch_before_script_execute_event(self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue