Bug 1251241 - return from DrawTargetCairo::FillGlyphs if |aFont| is nullptr. r=roc

MozReview-Commit-ID: 56RQO8Fm2AP
This commit is contained in:
Bogdan Postelnicu 2016-02-25 16:59:34 +02:00
parent e976e965ef
commit 0803034b34

View File

@ -1290,6 +1290,7 @@ DrawTargetCairo::FillGlyphs(ScaledFont *aFont,
if (!aFont) {
gfxDevCrash(LogReason::InvalidFont) << "Invalid scaled font";
return;
}
AutoPrepareForDrawing prep(this, mContext);