mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711063 - Part 6: Adjust nsRenderingContext to be compatible with Azure wrapper. r=joedrew
This commit is contained in:
parent
338c264807
commit
676b937d60
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user