зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1139646 - Ensure gfxHarfBuzzShaper only loads the vmtx table once, to avoid leaking it. r=smontagu
This commit is contained in:
Родитель
79fce42130
Коммит
05cc1cb432
|
@ -1247,6 +1247,13 @@ gfxHarfBuzzShaper::LoadHmtxTable()
|
|||
bool
|
||||
gfxHarfBuzzShaper::InitializeVertical()
|
||||
{
|
||||
// We only try this once. If we don't have a mHmtxTable after that,
|
||||
// this font can't handle vertical shaping, so return false.
|
||||
if (mVerticalInitialized) {
|
||||
return mHmtxTable != nullptr;
|
||||
}
|
||||
mVerticalInitialized = true;
|
||||
|
||||
if (!mHmtxTable) {
|
||||
if (!LoadHmtxTable()) {
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче