mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Wrap(Global)Method now takes a SafeJSContext instead of a JSContext
as first argument.
This commit is contained in:
parent
cd0eb88a3e
commit
35dc5320ab
10 changed files with 55 additions and 37 deletions
|
@ -57,7 +57,8 @@ use crate::fetch;
|
|||
use crate::layout_image::fetch_image_for_layout;
|
||||
use crate::microtask::MicrotaskQueue;
|
||||
use crate::script_runtime::{
|
||||
CommonScriptMsg, Runtime, ScriptChan, ScriptPort, ScriptThreadEventCategory,
|
||||
CommonScriptMsg, JSContext as SafeJSContext, Runtime, ScriptChan, ScriptPort,
|
||||
ScriptThreadEventCategory,
|
||||
};
|
||||
use crate::script_thread::{ImageCacheMsg, MainThreadScriptChan, MainThreadScriptMsg};
|
||||
use crate::script_thread::{ScriptThread, SendableMainThreadScriptChan};
|
||||
|
@ -2179,7 +2180,7 @@ impl Window {
|
|||
player_context,
|
||||
});
|
||||
|
||||
unsafe { WindowBinding::Wrap(runtime.cx(), win) }
|
||||
unsafe { WindowBinding::Wrap(SafeJSContext::from_ptr(runtime.cx()), win) }
|
||||
}
|
||||
|
||||
pub fn pipeline_id(&self) -> Option<PipelineId> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue