diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-17 02:33:01 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-19 09:36:53 +0200 |
commit | 6ab7f646203e168c8067acf69ad262e0f3c3fe19 (patch) | |
tree | 70ff1e16d04b902b10c9edb7db092a635d871c8d /components/script/dom/window.rs | |
parent | 409b5e3695828e01fc25cbab96148c4932f07cad (diff) | |
download | servo-6ab7f646203e168c8067acf69ad262e0f3c3fe19.tar.gz servo-6ab7f646203e168c8067acf69ad262e0f3c3fe19.zip |
Return a reference in BrowserContext::active_window()
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 3b56b96ddb1..22598fbf844 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1249,7 +1249,7 @@ impl Window { // FIXME(https://github.com/rust-lang/rust/issues/23338) let r = window.r(); let context = r.browsing_context(); - context.as_ref().unwrap().active_window() + Root::from_ref(context.as_ref().unwrap().active_window()) }) } } |