From f79e1e327dfdf047cab9652e1cc3e67a7667faa1 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 16 Feb 2023 23:09:50 -0500 Subject: Make GlobalScope.get_cx a static method. --- components/script/dom/bindings/callback.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/bindings/callback.rs') diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index c9130cfd50a..9b14f3ced60 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -245,7 +245,7 @@ impl CallSetup { if let Some(window) = global.downcast::() { window.Document().ensure_safe_to_run_script_or_layout(); } - let cx = global.get_cx(); + let cx = GlobalScope::get_cx(); let aes = AutoEntryScript::new(&global); let ais = callback.incumbent().map(AutoIncumbentScript::new); -- cgit v1.2.3