From 1c9ce04320a6c42b9877a750d755ab20a37f3ed4 Mon Sep 17 00:00:00 2001 From: Rizky Luthfianto Date: Sat, 21 Nov 2015 01:46:10 +0700 Subject: refactor(script): move SetDOMProxyInformation() call to lib.rs --- components/script/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/script/lib.rs') diff --git a/components/script/lib.rs b/components/script/lib.rs index 3ef9edff9ff..cd2a0720ce2 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -99,6 +99,8 @@ mod unpremultiplytable; mod webdriver_handlers; use dom::bindings::codegen::RegisterBindings; +use js::jsapi::SetDOMProxyInformation; +use std::ptr; #[cfg(target_os = "linux")] #[allow(unsafe_code)] @@ -145,6 +147,7 @@ fn perform_platform_specific_initialization() {} pub fn init() { unsafe { assert_eq!(js::jsapi::JS_Init(), true); + SetDOMProxyInformation(ptr::null(), 0, Some(script_task::shadow_check_callback)); } // Create the global vtables used by the (generated) DOM -- cgit v1.2.3