Backed out changeset 381b66eafe88 (bug 1808813) as requested for the linked regressions. CLOSED TREE

This commit is contained in:
Stanca Serban 2024-03-22 19:23:40 +02:00
parent c93ab1b0e6
commit 2eb0304b97
2 changed files with 1 additions and 11 deletions

View File

@ -20,7 +20,6 @@
#include "mozilla/PostTraversalTask.h"
#include "mozilla/dom/WorkerCommon.h"
#include "gfxOTSUtils.h"
#include "nsFontFaceLoader.h"
#include "nsIFontLoadCompleteCallback.h"
#include "nsProxyRelease.h"
#include "nsContentUtils.h"
@ -1112,15 +1111,7 @@ void gfxUserFontSet::ForgetLocalFace(gfxUserFontFamily* aFontFamily) {
// platform fontlist, whether or not the entry actually used a local()
// source last time, as one might be newly available.
if (ufe->mSeenLocalSource) {
if (ufe->GetLoader()) {
// If there's a loader, we need to cancel it, because we'll trigger a
// fresh load if required when we re-resolve the font...
ufe->GetLoader()->Cancel();
} else {
// ...otherwise, just reset our state so that we'll re-evaluate the
// source list from the beginning.
ufe->LoadCanceled();
}
ufe->LoadCanceled();
}
}
aFontFamily->ReadUnlock();

View File

@ -56,7 +56,6 @@ EXPORTS += [
"nsCSSValue.h",
"nsDOMCSSAttrDeclaration.h",
"nsDOMCSSDeclaration.h",
"nsFontFaceLoader.h",
"nsICSSDeclaration.h",
"nsICSSLoaderObserver.h",
"nsStyleAutoArray.h",