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/documentfragment.rs | |
parent | 2f54022761b0b1251bb0b18fc367b568d1c4c4ac (diff) | |
download | servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.tar.gz servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.zip |
Introduce GlobalScope::as_window
Diffstat (limited to 'components/script/dom/documentfragment.rs')
-rw-r--r-- | components/script/dom/documentfragment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/documentfragment.rs b/components/script/dom/documentfragment.rs index 0fba19d5aff..bf05e36fce3 100644 --- a/components/script/dom/documentfragment.rs +++ b/components/script/dom/documentfragment.rs @@ -39,7 +39,7 @@ impl DocumentFragment { } pub fn Constructor(global: GlobalRef) -> Fallible<Root<DocumentFragment>> { - let document = global.as_window().Document(); + let document = global.as_global_scope().as_window().Document(); Ok(DocumentFragment::new(document.r())) } |