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
|
@ -2186,6 +2186,8 @@ impl DocumentMethods for Document {
|
||||||
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, self.URL()))),
|
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, self.URL()))),
|
||||||
"progressevent" =>
|
"progressevent" =>
|
||||||
Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))),
|
Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))),
|
||||||
|
"focusevent" =>
|
||||||
|
Ok(Root::upcast(FocusEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||||
_ =>
|
_ =>
|
||||||
Err(Error::NotSupported),
|
Err(Error::NotSupported),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
pub fn new(window: &Window,
|
||||||
type_: DOMString,
|
type_: DOMString,
|
||||||
can_bubble: EventBubbles,
|
can_bubble: EventBubbles,
|
||||||
|
|
|
@ -157,30 +157,6 @@
|
||||||
bug: https://github.com/servo/servo/issues/10738
|
bug: https://github.com/servo/servo/issues/10738
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[FocusEvent should be an alias for FocusEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('FocusEvent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[focusevent should be an alias for FocusEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('focusevent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[FOCUSEVENT should be an alias for FocusEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('FOCUSEVENT') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10739
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HashChangeEvent should be an alias for HashChangeEvent.]
|
[HashChangeEvent should be an alias for HashChangeEvent.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue