Bug 268513 overflow:scroll causes memory growth

r=dbaron, sr=jst
This commit is contained in:
kyle.yuan%sun.com 2005-02-23 23:00:23 +00:00
Родитель 852e442fdb
Коммит 51eca7adc5
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -3024,6 +3024,9 @@ PresShell::NotifyDestroyingFrame(nsIFrame* aFrame)
// Remove frame properties
mPresContext->PropertyTable()->DeleteAllPropertiesFor(aFrame);
// Clear anonymous content if any
SetAnonymousContentFor(aFrame->GetContent(), nsnull);
}
return NS_OK;
@ -4633,7 +4636,10 @@ PresShell::SetAnonymousContentFor(nsIContent* aContent, nsISupportsArray* aAnony
continue;
content->SetDocument(nsnull, PR_TRUE, PR_TRUE);
nsCOMPtr<nsISupports> old_ref = mDocument->RemoveReference(content);
}
mAnonymousContentTable->Remove(&key);
}
}