mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement the focusevent argument to Document::createEvent
This commit is contained in:
parent
f773dc182b
commit
e4f3a31caf
3 changed files with 8 additions and 24 deletions
|
@ -2186,6 +2186,8 @@ impl DocumentMethods for Document {
|
|||
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, self.URL()))),
|
||||
"progressevent" =>
|
||||
Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))),
|
||||
"focusevent" =>
|
||||
Ok(Root::upcast(FocusEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||
_ =>
|
||||
Err(Error::NotSupported),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue