mirror of
https://github.com/servo/servo.git
synced 2025-09-22 21:00:14 +01:00
Remove extraneous script_chan parameter from Trusted::new
This commit is contained in:
parent
fbc575407d
commit
33acb1937c
15 changed files with 38 additions and 62 deletions
|
@ -1122,13 +1122,11 @@ pub struct ChangeEventRunnable {
|
|||
|
||||
impl ChangeEventRunnable {
|
||||
pub fn send(node: &Node) {
|
||||
let window = window_from_node(node);
|
||||
let window = window.r();
|
||||
let chan = window.user_interaction_task_source();
|
||||
let handler = Trusted::new(node, chan.clone());
|
||||
let handler = Trusted::new(node);
|
||||
let dispatcher = ChangeEventRunnable {
|
||||
element: handler,
|
||||
};
|
||||
let chan = window_from_node(node).user_interaction_task_source();
|
||||
let _ = chan.send(CommonScriptMsg::RunnableMsg(InputEvent, box dispatcher));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue