NS_IMETHODIMP nsRenderingContextPh :: Translate(nscoord aX, nscoord aY) { PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::Translate (%i,%i)\n", aX, aY));  PtArg_t arg; PhPoint_t *pos; PtSetArg(&arg,Pt_ARG_POS,&pos,0); PtGetResources(mWidget,1,&arg);    mTMatrix->AddTranslation((float)aX,(float)aY); return NS_OK; }
NS_IMETHODIMP Translate(nscoord aX, nscoord aY) { mTranMatrix->AddTranslation((float)aX,(float)aY); return NS_OK; }
NS_IMETHODIMP nsRenderingContextPh :: Translate(nscoord aX, nscoord aY){  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::Translate (%i,%i)\n", aX, aY));//  printf("nsRenderingContextPh::Translate (%i,%i)\n", aX, aY);PtArg_t arg;PhPoint_t *pos;PtSetArg(&arg,Pt_ARG_POS,&pos,0);PtGetResources(mWidget,1,&arg);//printf ("translate widget: %p %d %d\n",mWidget,pos->x,pos->y);//aX += pos->x*15;//aY += pos->y*15;  mTMatrix->AddTranslation((float)aX,(float)aY);  return NS_OK;}