зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342567. r=aosmond a=dveditz
This commit is contained in:
Родитель
c1bda06e96
Коммит
ff22b71de5
|
@ -2192,6 +2192,18 @@ imgLoader::LoadImage(nsIURI* aURI,
|
|||
request->SetCacheEntry(entry);
|
||||
|
||||
if (mCacheTracker) {
|
||||
if (MOZ_UNLIKELY(!entry->GetExpirationState()->IsTracked())) {
|
||||
bool inCache = false;
|
||||
RefPtr<imgCacheEntry> e;
|
||||
if (cache.Get(key, getter_AddRefs(e)) && e) {
|
||||
inCache = (e == entry);
|
||||
}
|
||||
gfxCriticalNoteOnce << "entry with no proxies is no in tracker "
|
||||
<< "request->HasConsumers() "
|
||||
<< (request->HasConsumers() ? "true" : "false")
|
||||
<< " inCache " << (inCache ? "true" : "false");
|
||||
}
|
||||
|
||||
mCacheTracker->MarkUsed(entry);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче