mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make GlobalScope.get_cx a static method.
This commit is contained in:
parent
4998c65c42
commit
f79e1e327d
39 changed files with 132 additions and 127 deletions
|
@ -33,7 +33,7 @@ use uuid::Uuid;
|
|||
pub fn handle_evaluate_js(global: &GlobalScope, eval: String, reply: IpcSender<EvaluateJSReply>) {
|
||||
// global.get_cx() returns a valid `JSContext` pointer, so this is safe.
|
||||
let result = unsafe {
|
||||
let cx = global.get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
let _ac = enter_realm(global);
|
||||
rooted!(in(*cx) let mut rval = UndefinedValue());
|
||||
let source_code = SourceCode::Text(Rc::new(DOMString::from_string(eval)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue