mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e5c4a2513e
commit
1618fafe07
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user