mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
refactor(script): move SetDOMProxyInformation() call to lib.rs
This commit is contained in:
parent
2c7117d73b
commit
1c9ce04320
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue