aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorRizky Luthfianto <mrluthfianto@gmail.com>2015-11-21 01:46:10 +0700
committerRizky Luthfianto <mrluthfianto@gmail.com>2015-11-21 01:46:10 +0700
commit1c9ce04320a6c42b9877a750d755ab20a37f3ed4 (patch)
treeaafe0af9d12c2b8c9c54e7a00faabab518243313 /components/script/script_task.rs
parent2c7117d73bf3536aa563f52b7b7c2a578015709d (diff)
downloadservo-1c9ce04320a6c42b9877a750d755ab20a37f3ed4.tar.gz
servo-1c9ce04320a6c42b9877a750d755ab20a37f3ed4.zip
refactor(script): move SetDOMProxyInformation() call to lib.rs
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 5a12d9e004f..6205866f2dc 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -49,7 +49,7 @@ use hyper::mime::{Mime, SubLevel, TopLevel};
use ipc_channel::ipc::{self, IpcSender};
use ipc_channel::router::ROUTER;
use js::glue::CollectServoSizes;
-use js::jsapi::{DOMProxyShadowsResult, HandleId, HandleObject, RootedValue, SetDOMProxyInformation};
+use js::jsapi::{DOMProxyShadowsResult, HandleId, HandleObject, RootedValue};
use js::jsapi::{DisableIncrementalGC, JS_AddExtraGCRootsTracer, JS_SetWrapObjectCallbacks};
use js::jsapi::{GCDescription, GCProgress, JSGCInvocationKind, SetGCSliceCallback};
use js::jsapi::{JSAutoRequest, JSGCStatus, JS_GetRuntime, JS_SetGCCallback, SetDOMCallbacks};
@@ -582,7 +582,7 @@ unsafe extern "C" fn debug_gc_callback(_rt: *mut JSRuntime, status: JSGCStatus,
}
}
-unsafe extern "C" fn shadow_check_callback(_cx: *mut JSContext,
+pub unsafe extern "C" fn shadow_check_callback(_cx: *mut JSContext,
_object: HandleObject, _id: HandleId) -> DOMProxyShadowsResult {
// XXX implement me
DOMProxyShadowsResult::ShadowCheckFailed
@@ -693,7 +693,6 @@ impl ScriptTask {
unsafe {
unsafe extern "C" fn empty_wrapper_callback(_: *mut JSContext, _: *mut JSObject) -> bool { true }
- SetDOMProxyInformation(ptr::null(), 0, Some(shadow_check_callback));
SetDOMCallbacks(runtime.rt(), &DOM_CALLBACKS);
SetPreserveWrapperCallback(runtime.rt(), Some(empty_wrapper_callback));
// Pre barriers aren't working correctly at the moment