aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/focusevent.rs
diff options
context:
space:
mode:
authorRohan Prinja <rohan@cs.unc.edu>2016-11-10 02:24:01 -0500
committerAnthony Ramine <n.oxyde@gmail.com>2016-11-30 23:23:41 +0100
commit973f77c00698938c1333c0df7da30993075264d1 (patch)
tree1f7533d43218cb3916acb812b7f5139848ed64d9 /components/script/dom/focusevent.rs
parent8af2327e95fe2f229df27074b868aad56bce2252 (diff)
downloadservo-973f77c00698938c1333c0df7da30993075264d1.tar.gz
servo-973f77c00698938c1333c0df7da30993075264d1.zip
Make WebIDL constructors take a more specific global if possible (fixes #14071)
Diffstat (limited to 'components/script/dom/focusevent.rs')
-rw-r--r--components/script/dom/focusevent.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/focusevent.rs b/components/script/dom/focusevent.rs
index d06b725286d..1eb3983737d 100644
--- a/components/script/dom/focusevent.rs
+++ b/components/script/dom/focusevent.rs
@@ -53,12 +53,12 @@ impl FocusEvent {
ev
}
- pub fn Constructor(global: &GlobalScope,
+ pub fn Constructor(window: &Window,
type_: DOMString,
init: &FocusEventBinding::FocusEventInit) -> Fallible<Root<FocusEvent>> {
let bubbles = EventBubbles::from(init.parent.parent.bubbles);
let cancelable = EventCancelable::from(init.parent.parent.cancelable);
- let event = FocusEvent::new(global.as_window(),
+ let event = FocusEvent::new(window,
type_,
bubbles,
cancelable,