mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #4257 : johnathan79717/servo/4008, r=jdm
This is a fix for issue #4008.
This commit is contained in:
commit
bdb3a2538b
4 changed files with 15 additions and 25 deletions
|
@ -47,6 +47,7 @@ use dom::htmltitleelement::HTMLTitleElement;
|
|||
use dom::location::Location;
|
||||
use dom::mouseevent::MouseEvent;
|
||||
use dom::keyboardevent::KeyboardEvent;
|
||||
use dom::messageevent::MessageEvent;
|
||||
use dom::node::{Node, ElementNodeTypeId, DocumentNodeTypeId, NodeHelpers};
|
||||
use dom::node::{CloneChildren, DoNotCloneChildren};
|
||||
use dom::nodelist::NodeList;
|
||||
|
@ -711,6 +712,8 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
global::Window(*window))),
|
||||
"keyboardevent" | "keyevents" => Ok(EventCast::from_temporary(
|
||||
KeyboardEvent::new_uninitialized(*window))),
|
||||
"messageevent" => Ok(EventCast::from_temporary(
|
||||
MessageEvent::new_uninitialized(global::Window(*window)))),
|
||||
_ => Err(NotSupported)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue