Backed out changeset 4d6aa78bf59d (bug 1460858) for Android mochitest failures on test_font_whitelist.html. CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2018-05-17 18:53:28 +03:00
Родитель 30476522a7
Коммит 2a7f77fea4
2 изменённых файлов: 3 добавлений и 8 удалений

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

@ -347,9 +347,8 @@ public:
return Oblique(angle);
}
// Not recognized as an oblique angle; maybe it's from a startup-cache
// created by an older version. The style field there used a simple 0/1
// for normal/italic respectively.
return aString[0] == '0' ? Normal() : Italic();
// created by an older version. Just treat it as 'normal'.
return Normal();
}
}

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

@ -1060,11 +1060,7 @@ AppendToFaceList(nsCString& aFaceList,
aFaceList.Append(',');
aFaceList.AppendInt(aFontEntry->mFTFontIndex);
aFaceList.Append(',');
// Note that ToString() appends to the destination string without
// replacing existing contents (see FontPropertyTypes.h)
aFontEntry->SlantStyle().Min().ToString(aFaceList);
aFaceList.Append(':');
aFontEntry->SlantStyle().Max().ToString(aFaceList);
aFaceList.Append(aFontEntry->IsItalic() ? '1' : '0');
aFaceList.Append(',');
aFaceList.AppendFloat(aFontEntry->Weight().Min().ToFloat());
aFaceList.Append(':');