mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -833,7 +833,7 @@ impl HTMLInputElement {
|
|||
}
|
||||
|
||||
// Rust's regex is not compatible, we need to use mozjs RegExp.
|
||||
let cx = self.global().get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
let _ac = enter_realm(self);
|
||||
rooted!(in(*cx) let mut pattern = ptr::null_mut::<JSObject>());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue