mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Updated comment.
This commit is contained in:
parent
67bf23016e
commit
ef50a64598
1 changed files with 4 additions and 1 deletions
|
@ -1453,7 +1453,10 @@ impl Window {
|
||||||
|
|
||||||
pub fn freeze(&self) {
|
pub fn freeze(&self) {
|
||||||
self.upcast::<GlobalScope>().suspend();
|
self.upcast::<GlobalScope>().suspend();
|
||||||
// A hint to the JS runtime that now would be a good time to GC this window.
|
// A hint to the JS runtime that now would be a good time to
|
||||||
|
// GC any unreachable objects generated by user script,
|
||||||
|
// or unattached DOM nodes. Attached DOM nodes can't be GCd yet,
|
||||||
|
// as the document might be thawed later.
|
||||||
self.Gc();
|
self.Gc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue