mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +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
|
@ -154,7 +154,7 @@ fn create_html_element(
|
|||
// Step 6. Recovering from exception.
|
||||
let global =
|
||||
GlobalScope::current().unwrap_or_else(|| document.global());
|
||||
let cx = global.get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
|
||||
// Step 6.1.1
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue