mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use Page::window_for_script_deallocation in ScriptMemoryFailsafe
Also: Rename window_for_script_dealloation to window_for_script_deallocation
This commit is contained in:
parent
b019df8927
commit
5e90299450
2 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ impl Page {
|
|||
Temporary::new(self.frame.borrow().as_ref().unwrap().window.clone())
|
||||
}
|
||||
|
||||
pub fn window_for_script_dealloation(&self) -> Unrooted<Window> {
|
||||
pub fn window_for_script_deallocation(&self) -> Unrooted<Window> {
|
||||
Unrooted::from_js(self.frame.borrow().as_ref().unwrap().window)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue