зеркало из https://github.com/mozilla/gecko-dev.git
Backing out Bug 268798 which caused a Tp regression. See bug 305356 for details. r+sr=bz, a=asa
This commit is contained in:
Родитель
675caf9c8e
Коммит
e890b300d8
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче