зеркало из https://github.com/mozilla/pjs.git
Bug 666664 - Patch to fix warnings in gfx/thebes/gfxUserFontSet.cpp. r=BenWa
This commit is contained in:
Родитель
9a19e6358a
Коммит
a030cc0197
|
@ -402,9 +402,11 @@ StoreUserFontData(gfxFontEntry* aFontEntry, gfxProxyFontEntry* aProxy,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
CopyWOFFMetadata(const PRUint8* aFontData, PRUint32 aLength,
|
||||
nsTArray<PRUint8>* aMetadata, PRUint32* aMetaOrigLen)
|
||||
void
|
||||
gfxUserFontSet::CopyWOFFMetadata(const PRUint8* aFontData,
|
||||
PRUint32 aLength,
|
||||
nsTArray<PRUint8>* aMetadata,
|
||||
PRUint32* aMetaOrigLen)
|
||||
{
|
||||
// This function may be called with arbitrary, unvalidated "font" data
|
||||
// from @font-face, so it needs to be careful to bounds-check, etc.,
|
||||
|
|
|
@ -281,6 +281,12 @@ protected:
|
|||
PRUint64 mGeneration;
|
||||
|
||||
static PRLogModuleInfo *sUserFontsLog;
|
||||
|
||||
private:
|
||||
static void CopyWOFFMetadata(const PRUint8* aFontData,
|
||||
PRUint32 aLength,
|
||||
nsTArray<PRUint8>* aMetadata,
|
||||
PRUint32* aMetaOrigLen);
|
||||
};
|
||||
|
||||
// acts a placeholder until the real font is downloaded
|
||||
|
|
Загрузка…
Ссылка в новой задаче