mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
Implement discarding Document objects to reclaim space.
This commit is contained in:
parent
955e2851bf
commit
78c87ea8d7
8 changed files with 301 additions and 218 deletions
|
@ -1346,7 +1346,7 @@ impl ScriptThread {
|
|||
fn handle_freeze_msg(&self, id: PipelineId) {
|
||||
let window = self.documents.borrow().find_window(id);
|
||||
if let Some(window) = window {
|
||||
window.upcast::<GlobalScope>().suspend();
|
||||
window.freeze();
|
||||
return;
|
||||
}
|
||||
let mut loads = self.incomplete_loads.borrow_mut();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue