aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-05 10:29:38 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:36:00 +0200
commitb6bbd41e11a8d73f884b7011905c05bd3efec3cd (patch)
tree44bf2af511f941aac3ff449b1b4b088f0286077c /components/script/dom/testbinding.rs
parentc66cf46bee6306ba8cb51f22c0d704c31c17d0fd (diff)
downloadservo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.tar.gz
servo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.zip
Remove GlobalRoot and GlobalRef
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index e395dfa73d3..b5d77809147 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -21,7 +21,6 @@ use dom::bindings::codegen::UnionTypes::{HTMLElementOrUnsignedLongOrStringOrBool
use dom::bindings::codegen::UnionTypes::{StringOrLongSequence, StringOrStringSequence, StringSequenceOrUnsignedLong};
use dom::bindings::codegen::UnionTypes::{StringOrUnsignedLong, StringOrBoolean, UnsignedLongOrBoolean};
use dom::bindings::error::{Error, Fallible};
-use dom::bindings::global::global_scope_from_context;
use dom::bindings::js::Root;
use dom::bindings::mozmap::MozMap;
use dom::bindings::num::Finite;
@@ -714,7 +713,7 @@ impl TestBindingMethods for TestBinding {
impl Callback for SimpleHandler {
#[allow(unsafe_code)]
fn callback(&self, cx: *mut JSContext, v: HandleValue) {
- let global = unsafe { global_scope_from_context(cx) };
+ let global = unsafe { GlobalScope::from_context(cx) };
let _ = self.handler.Call_(&*global, v, ExceptionHandling::Report);
}
}