mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: to_string() -> into_string()
This commit is contained in:
parent
475ff4dcb7
commit
e9d1740e19
39 changed files with 152 additions and 152 deletions
|
@ -44,7 +44,7 @@ pub trait Activatable : Copy {
|
|||
// https://html.spec.whatwg.org/multipage/webappapis.html#fire-a-synthetic-mouse-event
|
||||
let win = window_from_node(*element).root();
|
||||
let target: JSRef<EventTarget> = EventTargetCast::from_ref(*element);
|
||||
let mouse = MouseEvent::new(*win, "click".to_string(), false, false, Some(*win), 1,
|
||||
let mouse = MouseEvent::new(*win, "click".into_string(), false, false, Some(*win), 1,
|
||||
0, 0, 0, 0, ctrlKey, shiftKey, altKey, metaKey,
|
||||
0, None).root();
|
||||
let event: JSRef<Event> = EventCast::from_ref(*mouse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue