mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -57,7 +57,7 @@ impl XRInputSource {
|
|||
);
|
||||
|
||||
let _ac = enter_realm(&*global);
|
||||
let cx = global.get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
unsafe {
|
||||
rooted!(in(*cx) let mut profiles = UndefinedValue());
|
||||
source.info.profiles.to_jsval(*cx, profiles.handle_mut());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue