☠☠ backed out by 4b53114ec9d4 ☠ ☠ | |
author | John Daggett <jdaggett@mozilla.com> |
Tue, 12 May 2015 17:44:32 +0900 | |
changeset 243511 | f18546e7f271caa2ea09bac6ebd8a7f36be25c58 |
parent 243510 | f630169085c1d4904ed849d146b0eee5bcf6dd41 |
child 243512 | a8fca346b1ffd62bdf5c55449698c494ccd8142f |
push id | 28741 |
push user | kwierso@gmail.com |
push date | Tue, 12 May 2015 23:24:40 +0000 |
treeherder | mozilla-central@d476776d920d [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | m_kato |
bugs | 1056479 |
milestone | 40.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/gfx/thebes/gfxTextRun.cpp +++ b/gfx/thebes/gfxTextRun.cpp @@ -2798,19 +2798,21 @@ gfxFontGroup::FindFontForChar(uint32_t a if (font) { *aMatchType = gfxTextRange::kFontGroup; return font.forget(); } } // If italic, test the regular face to see if it supports the character. // Only do this for platform fonts, not userfonts. + fe = ff.FontEntry(); if (mStyle.style != NS_FONT_STYLE_NORMAL && - !ff.FontEntry()->IsUserFont()) { - font = FindNonItalicFaceForChar(mFonts[i].Family(), aCh); + !fe->mIsUserFontContainer && + !fe->IsUserFont()) { + font = FindNonItalicFaceForChar(ff.Family(), aCh); if (font) { *aMatchType = gfxTextRange::kFontGroup; return font.forget(); } } } if (fontListLength == 0) {