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
|
@ -17,7 +17,7 @@ impl Console {
|
|||
#[allow(unsafe_code)]
|
||||
fn send_to_devtools(global: &GlobalScope, level: LogLevel, message: DOMString) {
|
||||
if let Some(chan) = global.devtools_chan() {
|
||||
let caller = unsafe { describe_scripted_caller(*global.get_cx()) }.unwrap_or_default();
|
||||
let caller = unsafe { describe_scripted_caller(*GlobalScope::get_cx()) }.unwrap_or_default();
|
||||
let console_message = ConsoleMessage {
|
||||
message: String::from(message),
|
||||
logLevel: level,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue