Bug 614272: When painting an SVG image, check if imageTransform is singular before applying it to our gfxContext. r=longsonr a=blocking-final+

This commit is contained in:
Daniel Holbert 2011-01-10 21:57:19 -08:00
parent e5c4a2513e
commit 1618fafe07

View File

@ -242,6 +242,10 @@ nsSVGImageFrame::TransformContextForPainting(gfxContext* aGfxContext)
imageTransform = GetRasterImageTransform(nativeWidth, nativeHeight);
}
if (imageTransform.IsSingular()) {
return PR_FALSE;
}
// NOTE: We need to cancel out the effects of Full-Page-Zoom, or else
// it'll get applied an extra time by DrawSingleUnscaledImage.
nscoord appUnitsPerDevPx = PresContext()->AppUnitsPerDevPixel();