mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
fix for 14835, mac specific change to clip image tiling code blit to the dest rect to emulate win32 behavior - saari r=mjudge, pavlov
This commit is contained in:
parent
eb9b1f27a0
commit
bc6e072ea3
@ -1609,6 +1609,8 @@ nsresult nsImageMac::DrawTileQuickly(nsIRenderingContext &aContext,
|
||||
{
|
||||
Rect imageDestRect = imageRect;
|
||||
::OffsetRect(&imageDestRect, x, y);
|
||||
imageDestRect.bottom = PR_MIN(imageDestRect.bottom, aY1);
|
||||
imageDestRect.right = PR_MIN(imageDestRect.right, aX1);
|
||||
|
||||
// CopyBits will do the truncation for us at the edges
|
||||
CopyBitsWithMask((BitMap*)(&mImagePixmap),
|
||||
|
Loading…
Reference in New Issue
Block a user