Bug 376245, follow up which removes the scaling as the units for nsIImage:Draw are pixels, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@224266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ec62b1c359
commit
9a85b3e95f
@ -551,10 +551,6 @@ nsBaseDragService::DrawDragForImage(nsPresContext* aPresContext,
|
||||
context.Rectangle(gfxRect(0, 0, destRect.width, destRect.height));
|
||||
context.Fill();
|
||||
|
||||
PRInt32 upp = aPresContext->AppUnitsPerDevPixel();
|
||||
srcRect.ScaleRoundOut(upp);
|
||||
destRect.ScaleRoundOut(upp);
|
||||
|
||||
gfxRect inRect = gfxRect(srcRect.x, srcRect.y, srcRect.width, srcRect.height);
|
||||
gfxRect outRect = gfxRect(destRect.x, destRect.y, destRect.width, destRect.height);
|
||||
return img->Draw(*rc, inRect, outRect);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user