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