summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxPlatformFontList.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /gfx/thebes/gfxPlatformFontList.h
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/thebes/gfxPlatformFontList.h')
-rw-r--r--gfx/thebes/gfxPlatformFontList.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/gfx/thebes/gfxPlatformFontList.h b/gfx/thebes/gfxPlatformFontList.h
index 4d5b9e4015..3ab74c5f74 100644
--- a/gfx/thebes/gfxPlatformFontList.h
+++ b/gfx/thebes/gfxPlatformFontList.h
@@ -245,6 +245,8 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
return sPlatformFontList;
}
+ void GetMissingFonts(nsCString& aMissingFonts);
+
static bool Initialize(gfxPlatformFontList* aList);
static void Shutdown() {
@@ -658,6 +660,9 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
mutable mozilla::RecursiveMutex mLock;
protected:
+ virtual nsTArray<std::pair<const char**, uint32_t>>
+ GetFilteredPlatformFontLists() = 0;
+
friend class mozilla::fontlist::FontList;
friend class InitOtherFamilyNamesForStylo;
@@ -867,7 +872,10 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
// load the bad underline blocklist from pref.
void LoadBadUnderlineList();
+ // This version of the function will not modify aKeyName
void GenerateFontListKey(const nsACString& aKeyName, nsACString& aResult);
+ // This version of the function WILL modify aKeyName
+ void GenerateFontListKey(nsACString& aKeyName);
virtual void GetFontFamilyNames(nsTArray<nsCString>& aFontFamilyNames)
MOZ_REQUIRES(mLock);
@@ -1010,13 +1018,14 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
// When system-wide font lookup fails for a character, cache it to skip future
// searches. This is an array of bitsets, one for each FontVisibility level.
- mozilla::EnumeratedArray<FontVisibility, FontVisibility::Count,
- gfxSparseBitSet>
+ mozilla::EnumeratedArray<FontVisibility, gfxSparseBitSet,
+ size_t(FontVisibility::Count)>
mCodepointsWithNoFonts MOZ_GUARDED_BY(mLock);
// the family to use for U+FFFD fallback, to avoid expensive search every time
// on pages with lots of problems
- mozilla::EnumeratedArray<FontVisibility, FontVisibility::Count, FontFamily>
+ mozilla::EnumeratedArray<FontVisibility, FontFamily,
+ size_t(FontVisibility::Count)>
mReplacementCharFallbackFamily MOZ_GUARDED_BY(mLock);
// Sorted array of lowercased family names; use ContainsSorted to test