зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1865891 p9. Rename GloballyEvictAllContentViewers to match nsIDocumentViewer's new name. r=emilio
Depends on D194281 Differential Revision: https://phabricator.services.mozilla.com/D194282
This commit is contained in:
Родитель
0e8368d940
Коммит
8b6d7353ba
|
@ -205,7 +205,7 @@ nsSHistoryObserver::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
const char16_t* aData) {
|
||||
if (!strcmp(aTopic, "cacheservice:empty-cache") ||
|
||||
!strcmp(aTopic, "memory-pressure")) {
|
||||
nsSHistory::GloballyEvictAllContentViewers();
|
||||
nsSHistory::GloballyEvictAllDocumentViewers();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -1782,7 +1782,7 @@ nsSHistory::RemoveFromExpirationTracker(SHEntrySharedParentState* aEntry) {
|
|||
// infrequently -- only when the disk or memory cache is cleared.
|
||||
|
||||
// static
|
||||
void nsSHistory::GloballyEvictAllContentViewers() {
|
||||
void nsSHistory::GloballyEvictAllDocumentViewers() {
|
||||
int32_t maxViewers = sHistoryMaxTotalViewers;
|
||||
sHistoryMaxTotalViewers = 0;
|
||||
GloballyEvictContentViewers();
|
||||
|
|
|
@ -252,7 +252,7 @@ class nsSHistory : public mozilla::LinkedListElement<nsSHistory>,
|
|||
virtual void EvictOutOfRangeWindowDocumentViewers(int32_t aIndex);
|
||||
void EvictDocumentViewerForEntry(nsISHEntry* aEntry);
|
||||
static void GloballyEvictContentViewers();
|
||||
static void GloballyEvictAllContentViewers();
|
||||
static void GloballyEvictAllDocumentViewers();
|
||||
|
||||
// Calculates a max number of total
|
||||
// content viewers to cache, based on amount of total memory
|
||||
|
|
Загрузка…
Ссылка в новой задаче