Use Page::window_for_script_deallocation in ScriptMemoryFailsafe

Also: Rename window_for_script_dealloation to window_for_script_deallocation
This commit is contained in:
josiahdaniels 2015-04-12 17:38:38 -04:00
parent b019df8927
commit 5e90299450
2 changed files with 3 additions and 3 deletions

View file

@ -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)
}