mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1415880 - Remove the obsolete mIsValid flag from gfxFontEntry, as nothing depends on it any more. r=jrmuizel
This commit is contained in:
parent
78ad3423b1
commit
a7a8736435
@ -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),
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user