mirror of
https://github.com/servo/servo.git
synced 2025-10-05 11:09:22 +01:00
Use internal mutability for EventTarget.
This commit is contained in:
parent
2aefa3f805
commit
9acba1477c
8 changed files with 113 additions and 98 deletions
|
@ -1094,7 +1094,7 @@ impl ScriptTask {
|
|||
0i32).root();
|
||||
let event: &JSRef<Event> = EventCast::from_ref(&*uievent);
|
||||
|
||||
let wintarget: &mut JSRef<EventTarget> = EventTargetCast::from_mut_ref(&mut *window);
|
||||
let wintarget: &JSRef<EventTarget> = EventTargetCast::from_ref(&*window);
|
||||
let _ = wintarget.dispatch_event_with_target(None, event);
|
||||
}
|
||||
None => ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue