зеркало из https://github.com/mozilla/pjs.git
Assert on null gfxContext. Bug 377918, r+sr=roc
This commit is contained in:
Родитель
de2fa93bc5
Коммит
7e7f373009
|
@ -560,6 +560,7 @@ gfxWindowsFontGroup::MakeTextRun(const PRUnichar *aString, PRUint32 aLength,
|
|||
gfxTextRun *textRun = new gfxTextRun(aParams, aLength);
|
||||
if (!textRun)
|
||||
return nsnull;
|
||||
NS_ASSERTION(aParams->mContext, "MakeTextRun called without a gfxContext");
|
||||
|
||||
textRun->RecordSurrogates(aString);
|
||||
|
||||
|
@ -585,6 +586,7 @@ gfxWindowsFontGroup::MakeTextRun(const PRUint8 *aString, PRUint32 aLength,
|
|||
gfxTextRun *textRun = new gfxTextRun(aParams, aLength);
|
||||
if (!textRun)
|
||||
return nsnull;
|
||||
NS_ASSERTION(aParams->mContext, "MakeTextRun called without a gfxContext");
|
||||
|
||||
#ifdef FORCE_UNISCRIBE
|
||||
const PRBool isComplex = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче