mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +02: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user