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
|
@ -540,7 +540,7 @@ impl JsTimerTask {
|
|||
match self.callback {
|
||||
InternalTimerCallback::StringTimerCallback(ref code_str) => {
|
||||
let global = this.global();
|
||||
let cx = global.get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
rooted!(in(*cx) let mut rval = UndefinedValue());
|
||||
// FIXME(cybai): Use base url properly by saving private reference for timers (#27260)
|
||||
global.evaluate_js_on_global_with_result(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue