mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -31,6 +31,12 @@ impl FocusEvent {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new_uninitialized(global: GlobalRef) -> Root<FocusEvent> {
|
||||
reflect_dom_object(box FocusEvent::new_inherited(),
|
||||
global,
|
||||
FocusEventBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn new(window: &Window,
|
||||
type_: DOMString,
|
||||
can_bubble: EventBubbles,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue