зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
7297d39c0a
Коммит
cf1979e3a5
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче