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/range.rs | |
parent | 2f54022761b0b1251bb0b18fc367b568d1c4c4ac (diff) | |
download | servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.tar.gz servo-766010379e4c10d9cfaa9e319ec7c50bc30dfba5.zip |
Introduce GlobalScope::as_window
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index 80018b661f3..7e636164da5 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -71,7 +71,7 @@ impl Range { // https://dom.spec.whatwg.org/#dom-range pub fn Constructor(global: GlobalRef) -> Fallible<Root<Range>> { - let document = global.as_window().Document(); + let document = global.as_global_scope().as_window().Document(); Ok(Range::new_with_doc(document.r())) } |