mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -117,7 +117,7 @@ impl History {
|
|||
blobs: None,
|
||||
};
|
||||
let global_scope = self.window.upcast::<GlobalScope>();
|
||||
rooted!(in(*global_scope.get_cx()) let mut state = UndefinedValue());
|
||||
rooted!(in(*GlobalScope::get_cx()) let mut state = UndefinedValue());
|
||||
if let Err(_) = structuredclone::read(&global_scope, data, state.handle_mut()) {
|
||||
warn!("Error reading structuredclone data");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue