diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-14 17:39:13 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-14 17:39:13 +0200 |
commit | 85285113e436eb1bfb8695dc23fc26878ecbf721 (patch) | |
tree | e8f5ce48f79f06445f5460071d0af421c2642452 /src/components/script/script_task.rs | |
parent | 8f63c9e1c8ee776b72b0a906a137b7155773ec50 (diff) | |
download | servo-85285113e436eb1bfb8695dc23fc26878ecbf721.tar.gz servo-85285113e436eb1bfb8695dc23fc26878ecbf721.zip |
Instate a pre-wrap hook that outerizes its argument, to satisfy an undocumented JSAPI requirement.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 82f4ab0bb5f..02c19c52dd3 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -11,7 +11,8 @@ use dom::bindings::codegen::InheritTypes::{EventTargetCast, NodeCast, ElementCas use dom::bindings::js::{JS, JSRef, RootCollection, Temporary, OptionalSettable}; use dom::bindings::js::OptionalRootable; use dom::bindings::trace::{Traceable, Untraceable}; -use dom::bindings::utils::{Reflectable, GlobalStaticData, wrap_for_same_compartment}; +use dom::bindings::utils::{Reflectable, GlobalStaticData}; +use dom::bindings::utils::{wrap_for_same_compartment, pre_wrap}; use dom::document::{Document, HTMLDocument, DocumentMethods, DocumentHelpers}; use dom::element::{Element, AttributeHandlers}; use dom::event::{Event_, ResizeEvent, ReflowEvent, ClickEvent, MouseDownEvent, MouseMoveEvent, MouseUpEvent}; @@ -647,11 +648,11 @@ impl ScriptTask { let callback = JS_SetWrapObjectCallbacks((*js_runtime).ptr, ptr::null(), wrap_for_same_compartment, - ptr::null()); + None); JS_SetWrapObjectCallbacks((*js_runtime).ptr, callback, wrap_for_same_compartment, - ptr::null()); + Some(pre_wrap)); } let js_context = js_runtime.cx(); |