зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121793 - trim out unused FindFontFamily/FindFontEntry functions. r=m_kato
This commit is contained in:
Родитель
9af789f234
Коммит
6eb10cad82
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче