aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/callback.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-12-08 08:43:52 -1000
committerCorey Farwell <coreyf@rwell.org>2016-12-08 08:50:35 -1000
commit449f6337d4d42dcc93c015e63bba80068a109513 (patch)
tree6d1808c4d56f542a89754d514e86e85858655688 /components/script/dom/bindings/callback.rs
parent0fe94a6724a42da8f02a60d1efe18fdfc96885ae (diff)
downloadservo-449f6337d4d42dcc93c015e63bba80068a109513.tar.gz
servo-449f6337d4d42dcc93c015e63bba80068a109513.zip
Rename `Reflectable` to `DomObject`.
Fixes https://github.com/servo/servo/issues/8473.
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r--components/script/dom/bindings/callback.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs
index 709dab31049..a5f82f1f303 100644
--- a/components/script/dom/bindings/callback.rs
+++ b/components/script/dom/bindings/callback.rs
@@ -5,7 +5,7 @@
//! Base classes to work with IDL callbacks.
use dom::bindings::error::{Error, Fallible, report_pending_exception};
-use dom::bindings::reflector::Reflectable;
+use dom::bindings::reflector::DomObject;
use dom::globalscope::GlobalScope;
use js::jsapi::{Heap, MutableHandleObject, RootedObject};
use js::jsapi::{IsCallable, JSContext, JSObject, JS_WrapObject};
@@ -132,9 +132,9 @@ impl CallbackInterface {
}
/// Wraps the reflector for `p` into the compartment of `cx`.
-pub fn wrap_call_this_object<T: Reflectable>(cx: *mut JSContext,
- p: &T,
- rval: MutableHandleObject) {
+pub fn wrap_call_this_object<T: DomObject>(cx: *mut JSContext,
+ p: &T,
+ rval: MutableHandleObject) {
rval.set(p.reflector().get_jsobject().get());
assert!(!rval.get().is_null());