Bug 1427660 - patch 1 - Make gfxTextRange::MatchType an enum class for stronger type checking (no functional change). r=lsalzman

This commit is contained in:
Jonathan Kew
2018-05-11 08:56:12 +01:00
parent 22f628d1db
commit bdbb81f3a3
8 changed files with 54 additions and 48 deletions

View File

@@ -670,7 +670,7 @@ MathMLTextRunFactory::RebuildTextRun(nsTransformedTextRun* aTextRun,
// Bug 930504. Some platforms do not have fonts for Mathematical
// Alphanumeric Symbols. Hence we check whether the transformed
// character is actually available.
uint8_t matchType;
gfxTextRange::MatchType matchType;
RefPtr<gfxFont> mathFont = fontGroup->
FindFontForChar(ch2, 0, 0, unicode::Script::COMMON, nullptr, &matchType);
if (mathFont) {