mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Pass &JS<Window> to the Wrap functions in codegen.
This commit is contained in:
parent
23b7277b54
commit
787108deaf
5 changed files with 12 additions and 12 deletions
|
@ -86,7 +86,7 @@ impl Document {
|
|||
pub fn reflect_document<D: Reflectable+DocumentBase>
|
||||
(document: ~D,
|
||||
window: &JS<Window>,
|
||||
wrap_fn: extern "Rust" fn(*JSContext, *JSObject, ~D) -> *JSObject)
|
||||
wrap_fn: extern "Rust" fn(*JSContext, &JS<Window>, ~D) -> *JSObject)
|
||||
-> JS<D> {
|
||||
assert!(document.reflector().get_jsobject().is_null());
|
||||
let raw_doc = reflect_dom_object(document, window, wrap_fn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue