diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-01-03 15:51:45 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-01-03 15:51:45 -0700 |
commit | dd84ae6bfb46872dfb0f0a8dca680452dadce3f0 (patch) | |
tree | 075a10708e864109cea7ce64ccb12e204a5ac224 /components/script/dom/document.rs | |
parent | e8fac3681b690adb0796b2a807ac95bd9c13597a (diff) | |
parent | c10049327a391c8e7c6bd3f872a76c1bb57d6e8f (diff) | |
download | servo-dd84ae6bfb46872dfb0f0a8dca680452dadce3f0.tar.gz servo-dd84ae6bfb46872dfb0f0a8dca680452dadce3f0.zip |
auto merge of #4539 : jimrhoskins/servo/default-view, r=jdm
Fixes: https://github.com/servo/servo/issues/4518
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 888796dcaee..30099bb1798 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -994,6 +994,11 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { self.ready_state.get() } + // https://html.spec.whatwg.org/multipage/browsers.html#dom-document-defaultview + fn DefaultView(self) -> Temporary<Window> { + Temporary::new(self.window) + } + global_event_handlers!() event_handler!(readystatechange, GetOnreadystatechange, SetOnreadystatechange) } |