mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make the argument to dispatch_event_with_target non-optional.
The name of the method makes it clear it's supposed to be used with a target override, so we might as well enforce that.
This commit is contained in:
parent
7317518c17
commit
bce3b172e7
2 changed files with 5 additions and 5 deletions
|
@ -859,7 +859,7 @@ impl ScriptTask {
|
|||
EventBubbles::DoesNotBubble,
|
||||
EventCancelable::NotCancelable).root();
|
||||
let wintarget: JSRef<EventTarget> = EventTargetCast::from_ref(*window);
|
||||
let _ = wintarget.dispatch_event_with_target(Some(doctarget), *event);
|
||||
let _ = wintarget.dispatch_event_with_target(doctarget, *event);
|
||||
|
||||
*page.fragment_name.borrow_mut() = final_url.fragment.clone();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue