Bug 1415880 - Remove the obsolete mIsValid flag from gfxFontEntry, as nothing depends on it any more. r=jrmuizel

This commit is contained in:
Jonathan Kew 2017-11-09 16:54:02 +00:00
parent 78ad3423b1
commit a7a8736435
3 changed files with 1 additions and 4 deletions

View File

@ -59,7 +59,6 @@ gfxCharacterMap::NotifyReleased()
gfxFontEntry::gfxFontEntry() :
mStyle(NS_FONT_STYLE_NORMAL), mFixedPitch(false),
mIsValid(true),
mIsBadUnderlineFont(false),
mIsUserFontContainer(false),
mIsDataUserFont(false),
@ -98,7 +97,6 @@ gfxFontEntry::gfxFontEntry() :
gfxFontEntry::gfxFontEntry(const nsAString& aName, bool aIsStandardFace) :
mName(aName), mStyle(NS_FONT_STYLE_NORMAL), mFixedPitch(false),
mIsValid(true),
mIsBadUnderlineFont(false),
mIsUserFontContainer(false),
mIsDataUserFont(false),

View File

@ -349,7 +349,6 @@ public:
uint8_t mStyle : 2; // italic/oblique
bool mFixedPitch : 1;
bool mIsValid : 1;
bool mIsBadUnderlineFont : 1;
bool mIsUserFontContainer : 1; // userfont entry
bool mIsDataUserFont : 1; // platform font entry (data)

View File

@ -1521,7 +1521,7 @@ gfxMacPlatformFontList::MakePlatformFont(const nsAString& aFontName,
::CFRelease(fontRef);
// if succeeded and font cmap is good, return the new font
if (newFontEntry->mIsValid && NS_SUCCEEDED(newFontEntry->ReadCMAP())) {
if (NS_SUCCEEDED(newFontEntry->ReadCMAP())) {
return newFontEntry.release();
}