mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1037442 - Part 1: gfxFontFamily assertions on font entry family names should be case insensitive. r=jdaggett
This commit is contained in:
parent
e178a929ba
commit
a628b6343c
@ -106,7 +106,13 @@ public:
|
||||
if (aFontEntry->mFamilyName.IsEmpty()) {
|
||||
aFontEntry->mFamilyName = Name();
|
||||
} else {
|
||||
MOZ_ASSERT(aFontEntry->mFamilyName.Equals(Name()));
|
||||
#ifdef DEBUG
|
||||
nsString thisName = Name();
|
||||
nsString entryName = aFontEntry->mFamilyName;
|
||||
ToLowerCase(thisName);
|
||||
ToLowerCase(entryName);
|
||||
MOZ_ASSERT(thisName.Equals(entryName));
|
||||
#endif
|
||||
}
|
||||
ResetCharacterMap();
|
||||
}
|
||||
@ -125,7 +131,13 @@ public:
|
||||
if (aRealFontEntry->mFamilyName.IsEmpty()) {
|
||||
aRealFontEntry->mFamilyName = Name();
|
||||
} else {
|
||||
MOZ_ASSERT(aRealFontEntry->mFamilyName.Equals(Name()));
|
||||
#ifdef DEBUG
|
||||
nsString thisName = Name();
|
||||
nsString entryName = aRealFontEntry->mFamilyName;
|
||||
ToLowerCase(thisName);
|
||||
ToLowerCase(entryName);
|
||||
MOZ_ASSERT(thisName.Equals(entryName));
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user