Backing out Bug 268798 which caused a Tp regression. See bug 305356 for details. r+sr=bz, a=asa

This commit is contained in:
dougt%meer.net 2005-09-01 14:33:07 +00:00
Родитель 675caf9c8e
Коммит e890b300d8
1 изменённых файлов: 4 добавлений и 6 удалений

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

@ -344,12 +344,10 @@ PRBool imgCache::Remove(nsIURI *aKey)
NS_IMETHODIMP
imgCache::Observe(nsISupports* aSubject, const char* aTopic, const PRUnichar* aSomeData)
{
if (strcmp(aTopic, "memory-pressure") == 0) {
ClearCache(PR_FALSE);
}
else if (strcmp(aTopic, "chrome-flush-skin-caches") == 0 ||
strcmp(aTopic, "chrome-flush-caches") == 0) {
if (strcmp(aTopic, "memory-pressure") == 0 ||
strcmp(aTopic, "chrome-flush-skin-caches") == 0 ||
strcmp(aTopic, "chrome-flush-caches") == 0)
ClearCache(PR_TRUE);
}
return NS_OK;
}