NS_IMETHODIMP nsDeviceContextPh :: GetClientRect(nsRect &aRect) { nsresult rv = NS_OK;  if (mIsPrinting) {  aRect.x = 0; aRect.y = 0; aRect.width = NSToIntRound(mWidth * mDevUnitsToAppUnits); aRect.height = NSToIntRound(mHeight * mDevUnitsToAppUnits); printf("GetClientRect: printer: %d, %d - %d, %d\n", mWidth, mHeight, aRect.width, aRect.height); } else rv = GetRect ( aRect );  return rv; }
inline NS_IMETHOD  GetClientRect(nsRect &aRect) { return GetRect ( aRect ); }
NS_IMETHODIMP nsDeviceContextPh :: GetClientRect(nsRect &aRect){	nsresult rv = NS_OK;	if (mIsPrinting) //( mSpec )	{	  // we have a printer device	  aRect.x = 0;	  aRect.y = 0;	  aRect.width = NSToIntRound(mWidth * mDevUnitsToAppUnits);	  aRect.height = NSToIntRound(mHeight * mDevUnitsToAppUnits);	  printf("GetClientRect: printer: %d, %d - %d, %d\n", mWidth, mHeight, aRect.width, aRect.height);	}	else		rv = GetRect ( aRect );	return rv;}