mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
91cbb70b0f
commit
818df199f8
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user