Bug 1121793 - trim out unused FindFontFamily/FindFontEntry functions. r=m_kato

This commit is contained in:
John Daggett 2015-01-15 13:22:32 +09:00
Родитель 9af789f234
Коммит 6eb10cad82
2 изменённых файлов: 0 добавлений и 21 удалений

Просмотреть файл

@ -1065,23 +1065,6 @@ gfxWindowsPlatform::DidRenderingDeviceReset()
return false;
}
gfxFontFamily *
gfxWindowsPlatform::FindFontFamily(const nsAString& aName)
{
return gfxPlatformFontList::PlatformFontList()->FindFamily(aName);
}
gfxFontEntry *
gfxWindowsPlatform::FindFontEntry(const nsAString& aName, const gfxFontStyle& aFontStyle)
{
nsRefPtr<gfxFontFamily> ff = FindFontFamily(aName);
if (!ff)
return nullptr;
bool aNeedsBold;
return ff->FindFontForStyle(aFontStyle, aNeedsBold);
}
void
gfxWindowsPlatform::GetPlatformCMSOutputProfile(void* &mem, size_t &mem_size)
{

Просмотреть файл

@ -211,10 +211,6 @@ public:
virtual bool DidRenderingDeviceReset();
/* Find a FontFamily/FontEntry object that represents a font on your system given a name */
gfxFontFamily *FindFontFamily(const nsAString& aName);
gfxFontEntry *FindFontEntry(const nsAString& aName, const gfxFontStyle& aFontStyle);
// ClearType is not always enabled even when available (e.g. Windows XP)
// if either of these prefs are enabled and apply, use ClearType rendering
bool UseClearTypeForDownloadableFonts();