NS_IMETHODIMP nsDeviceContextPh :: GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface) { PR_LOG(PhGfxLog, PR_LOG_DEBUG,("nsDeviceContextPh::GetDrawingSurface\n"));  aContext.CreateDrawingSurface(nsnull, 0, aSurface); return nsnull == aSurface ? NS_ERROR_OUT_OF_MEMORY : NS_OK; }
NS_IMETHODIMP GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface) { nsRect aRect; GetClientRect( aRect ); aContext.CreateDrawingSurface(aRect, 0, aSurface); return nsnull == aSurface ? NS_ERROR_OUT_OF_MEMORY : NS_OK; }
NS_IMETHODIMP nsDeviceContextPh :: GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface){  PR_LOG(PhGfxLog, PR_LOG_DEBUG,("nsDeviceContextPh::GetDrawingSurface\n"));  aContext.CreateDrawingSurface(nsnull, 0, aSurface);  return nsnull == aSurface ? NS_ERROR_OUT_OF_MEMORY : NS_OK;}