diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-05 10:29:38 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:36:00 +0200 |
commit | b6bbd41e11a8d73f884b7011905c05bd3efec3cd (patch) | |
tree | 44bf2af511f941aac3ff449b1b4b088f0286077c /components/script/dom/bindings/reflector.rs | |
parent | c66cf46bee6306ba8cb51f22c0d704c31c17d0fd (diff) | |
download | servo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.tar.gz servo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.zip |
Remove GlobalRoot and GlobalRef
Diffstat (limited to 'components/script/dom/bindings/reflector.rs')
-rw-r--r-- | components/script/dom/bindings/reflector.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/reflector.rs b/components/script/dom/bindings/reflector.rs index 580e3fa6fae..3d23f4e9370 100644 --- a/components/script/dom/bindings/reflector.rs +++ b/components/script/dom/bindings/reflector.rs @@ -5,7 +5,6 @@ //! The `Reflector` struct. use dom::bindings::conversions::DerivedFrom; -use dom::bindings::global::global_scope_from_reflector; use dom::bindings::js::Root; use dom::globalscope::GlobalScope; use js::jsapi::{HandleObject, JSContext, JSObject}; @@ -82,7 +81,7 @@ pub trait Reflectable { /// Returns the global scope of the realm that the Reflectable was created in. fn global_scope(&self) -> Root<GlobalScope> where Self: Sized { - global_scope_from_reflector(self) + GlobalScope::from_reflector(self) } } |