mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Auto merge of #7006 - Wafflespeanut:script_cleanup, r=jdm
Splitting ScriptMsg into various enums... ... for #3734, which is also one of the oldest issues. (/cc @jdm) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7006) <!-- Reviewable:end -->
This commit is contained in:
commit
6a52ec9484
18 changed files with 261 additions and 164 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