mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
implement composition event creation in Document.createEvent
This commit is contained in:
parent
250184fe60
commit
de939eb96d
4 changed files with 18 additions and 42 deletions
|
@ -3811,6 +3811,9 @@ impl DocumentMethods for Document {
|
|||
"beforeunloadevent" => Ok(DomRoot::upcast(BeforeUnloadEvent::new_uninitialized(
|
||||
&self.window,
|
||||
))),
|
||||
"compositionevent" | "textevent" => Ok(DomRoot::upcast(
|
||||
CompositionEvent::new_uninitialized(&self.window),
|
||||
)),
|
||||
"closeevent" => Ok(DomRoot::upcast(CloseEvent::new_uninitialized(
|
||||
self.window.upcast(),
|
||||
))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue