зеркало из https://github.com/mozilla/pjs.git
Bug 362068 - crash in _moz_cairo_win32_scaled_font_select_font. r=jwatt, sr=roc
This commit is contained in:
Родитель
0a40031e6a
Коммит
3e335efb4c
|
@ -224,8 +224,11 @@ nsSVGForeignObjectFrame::PaintSVG(nsSVGRenderState *aContext,
|
|||
|
||||
nsCOMPtr<nsIDOMSVGMatrix> tm = GetTMIncludingOffset();
|
||||
|
||||
cairo_matrix_t matrix = nsSVGUtils::ConvertSVGMatrixToCairo(tm);
|
||||
|
||||
nsIRenderingContext *ctx = aContext->GetRenderingContext();
|
||||
if (!ctx) {
|
||||
|
||||
if (!ctx || nsSVGUtils::IsSingular(&matrix)) {
|
||||
NS_WARNING("Can't render foreignObject element!");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
@ -233,7 +236,7 @@ nsSVGForeignObjectFrame::PaintSVG(nsSVGRenderState *aContext,
|
|||
gfxContext *gfx = aContext->GetGfxContext();
|
||||
|
||||
gfx->Save();
|
||||
gfx->Multiply(gfxMatrix(nsSVGUtils::ConvertSVGMatrixToCairo(tm)));
|
||||
gfx->Multiply(gfxMatrix(matrix));
|
||||
|
||||
nsresult rv = nsLayoutUtils::PaintFrame(ctx, kid, nsRegion(kid->GetRect()),
|
||||
NS_RGBA(0,0,0,0));
|
||||
|
|
Загрузка…
Ссылка в новой задаче