diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-02 16:19:43 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:45 +0200 |
commit | 766010379e4c10d9cfaa9e319ec7c50bc30dfba5 (patch) | |
tree | 3b40321f4b877b3f48fb0f45e2a7f2756f970479 /components/script/dom/keyboardevent.rs | |
parent | 2f54022761b0b1251bb0b18fc367b568d1c4c4ac (diff) | |
download | servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.tar.gz servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.zip |
Introduce GlobalScope::as_window
Diffstat (limited to 'components/script/dom/keyboardevent.rs')
-rw-r--r-- | components/script/dom/keyboardevent.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/keyboardevent.rs b/components/script/dom/keyboardevent.rs index 06987f55b12..812b9f63051 100644 --- a/components/script/dom/keyboardevent.rs +++ b/components/script/dom/keyboardevent.rs @@ -104,7 +104,8 @@ impl KeyboardEvent { pub fn Constructor(global: GlobalRef, type_: DOMString, init: &KeyboardEventBinding::KeyboardEventInit) -> Fallible<Root<KeyboardEvent>> { - let event = KeyboardEvent::new(global.as_window(), type_, + let event = KeyboardEvent::new(global.as_global_scope().as_window(), + type_, init.parent.parent.parent.bubbles, init.parent.parent.parent.cancelable, init.parent.parent.view.r(), |