Bug 711063 - Part 6: Adjust nsRenderingContext to be compatible with Azure wrapper. r=joedrew

This commit is contained in:
Bas Schouten 2012-01-05 08:17:52 +01:00
parent 338c264807
commit 676b937d60

View File

@ -125,9 +125,9 @@ nsRenderingContext::IntersectClip(const nsRect& aRect)
gfxRect clipRect(GFX_RECT_FROM_TWIPS_RECT(aRect));
if (mThebes->UserToDevicePixelSnapped(clipRect, true)) {
gfxMatrix mat(mThebes->CurrentMatrix());
mThebes->IdentityMatrix();
mat.Invert();
clipRect = mat.Transform(clipRect);
mThebes->Rectangle(clipRect);
mThebes->SetMatrix(mat);
} else {
mThebes->Rectangle(clipRect);
}