mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make FocusEvent::new_uninitialized take a &Window
This commit is contained in:
parent
707f8f881e
commit
ee1ff1d385
3 changed files with 6 additions and 6 deletions
|
@ -2612,7 +2612,7 @@ impl DocumentMethods for Document {
|
|||
"events" | "event" | "htmlevents" | "svgevents" =>
|
||||
Ok(Event::new_uninitialized(&self.window.upcast())),
|
||||
"focusevent" =>
|
||||
Ok(Root::upcast(FocusEvent::new_uninitialized(self.window.upcast()))),
|
||||
Ok(Root::upcast(FocusEvent::new_uninitialized(&self.window))),
|
||||
"hashchangeevent" =>
|
||||
Ok(Root::upcast(HashChangeEvent::new_uninitialized(&self.window.upcast()))),
|
||||
"keyboardevent" =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue