From 7e7f3730095f7136a59ff072068066c0fc755810 Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Sun, 6 May 2007 10:41:27 +0000 Subject: [PATCH] Assert on null gfxContext. Bug 377918, r+sr=roc --- gfx/thebes/src/gfxWindowsFonts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/thebes/src/gfxWindowsFonts.cpp b/gfx/thebes/src/gfxWindowsFonts.cpp index 8c3c0c454c2..1b6eb275592 100644 --- a/gfx/thebes/src/gfxWindowsFonts.cpp +++ b/gfx/thebes/src/gfxWindowsFonts.cpp @@ -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;