diff options
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index fe3a1fdbc12..f15e2824db4 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -60,9 +60,12 @@ use euclid::{Point2D, Vector2D, Rect, Size2D, TypedPoint2D, TypedScale, TypedSiz use fetch; use ipc_channel::ipc::IpcSender; use ipc_channel::router::ROUTER; -use js::jsapi::{JSAutoCompartment, JSContext}; -use js::jsapi::{JS_GC, JS_GetRuntime, JSPROP_ENUMERATE}; -use js::jsval::{JSVal, UndefinedValue}; +use js::jsapi::JSAutoCompartment; +use js::jsapi::JSContext; +use js::jsapi::JSPROP_ENUMERATE; +use js::jsapi::JS_GC; +use js::jsval::JSVal; +use js::jsval::UndefinedValue; use js::rust::HandleValue; use js::rust::wrappers::JS_DefineProperty; use layout_image::fetch_image_for_layout; @@ -595,9 +598,7 @@ impl WindowMethods for Window { obj, "opener\0".as_ptr() as *const libc::c_char, value, - JSPROP_ENUMERATE, - None, - None)); + JSPROP_ENUMERATE as u32)); } // https://html.spec.whatwg.org/multipage/#dom-window-closed @@ -878,7 +879,7 @@ impl WindowMethods for Window { #[allow(unsafe_code)] fn Gc(&self) { unsafe { - JS_GC(JS_GetRuntime(self.get_cx())); + JS_GC(self.get_cx()); } } |