Backing out my fix for bug 104544, it is causing artifacts to appear around the edges of images in the chrome. a=dbaron.

This commit is contained in:
bryner%netscape.com 2002-01-18 02:05:50 +00:00
parent 91cbb70b0f
commit 818df199f8
2 changed files with 8 additions and 10 deletions

View File

@ -891,12 +891,11 @@ NS_IMETHODIMP nsRenderingContextImpl::DrawImage(imgIContainer *aImage, const nsR
mTranMatrix->TransformCoord(&pt.x, &pt.y);
sr = *aSrcRect;
mTranMatrix->TransformCoord(&sr.x, &sr.y, &sr.width, &sr.height);
nsCOMPtr<nsIDeviceContext> dc;
GetDeviceContext(*getter_AddRefs(dc));
float t2p;
dc->GetAppUnitsToDevUnits(t2p);
sr.ScaleRoundOut(t2p);
sr.x = aSrcRect->x;
sr.y = aSrcRect->y;
mTranMatrix->TransformNoXLateCoord(&sr.x, &sr.y);
nsCOMPtr<gfxIImageFrame> iframe;
aImage->GetCurrentFrame(getter_AddRefs(iframe));

View File

@ -891,12 +891,11 @@ NS_IMETHODIMP nsRenderingContextImpl::DrawImage(imgIContainer *aImage, const nsR
mTranMatrix->TransformCoord(&pt.x, &pt.y);
sr = *aSrcRect;
mTranMatrix->TransformCoord(&sr.x, &sr.y, &sr.width, &sr.height);
nsCOMPtr<nsIDeviceContext> dc;
GetDeviceContext(*getter_AddRefs(dc));
float t2p;
dc->GetAppUnitsToDevUnits(t2p);
sr.ScaleRoundOut(t2p);
sr.x = aSrcRect->x;
sr.y = aSrcRect->y;
mTranMatrix->TransformNoXLateCoord(&sr.x, &sr.y);
nsCOMPtr<gfxIImageFrame> iframe;
aImage->GetCurrentFrame(getter_AddRefs(iframe));