fixing bug 74129 r=shaver sr=blizzard

This commit is contained in:
pavlov%netscape.com 2001-05-16 01:42:52 +00:00
parent c4053df510
commit d5963adaba
2 changed files with 18 additions and 0 deletions

View File

@ -1989,3 +1989,17 @@ nsRenderingContextGTK::my_gdk_draw_text (GdkDrawable *drawable,
else
g_error("undefined font type\n");
}
NS_IMETHODIMP nsRenderingContextGTK::DrawImage(imgIContainer *aImage, const nsRect * aSrcRect, const nsPoint * aDestPoint)
{
UpdateGC();
return nsRenderingContextImpl::DrawImage(aImage, aSrcRect, aDestPoint);
}
NS_IMETHODIMP nsRenderingContextGTK::DrawScaledImage(imgIContainer *aImage, const nsRect * aSrcRect, const nsRect * aDestRect)
{
UpdateGC();
return nsRenderingContextImpl::DrawScaledImage(aImage, aSrcRect, aDestRect);
}

View File

@ -173,6 +173,9 @@ public:
const nsRect &aDestBounds, PRUint32 aCopyFlags);
NS_IMETHOD RetrieveCurrentNativeGraphicData(PRUint32 * ngd);
NS_IMETHOD DrawImage(imgIContainer *aImage, const nsRect * aSrcRect, const nsPoint * aDestPoint);
NS_IMETHOD DrawScaledImage(imgIContainer *aImage, const nsRect * aSrcRect, const nsRect * aDestRect);
#ifdef MOZ_MATHML
/**
* Returns metrics (in app units) of an 8-bit character string
@ -188,6 +191,7 @@ public:
PRUint32 aLength,
nsBoundingMetrics& aBoundingMetrics,
PRInt32* aFontID = nsnull);
#endif /* MOZ_MATHML */
//locals