nsRect outR(inR.x, inR.y, inR.width, inR.height); outR.ScaleRoundOut(p2t);
nsRect outR(inR.x*pt2i, inR.y*pt2i, inR.width*pt2i, inR.height*pt2i);
static void ConvertNativeRegionToAppRegion(nsIRegion* aIn, nsRegion* aOut,                                           nsIDeviceContext* context){  nsRegionRectSet* rects = nsnull;  aIn->GetRects(&rects);  if (!rects)    return;    float  p2t;  context->GetDevUnitsToAppUnits(p2t);  PRUint32 i;  for (i = 0; i < rects->mNumRects; i++) {    const nsRegionRect& inR = rects->mRects[i];    nsRect outR(inR.x, inR.y, inR.width, inR.height);    outR.ScaleRoundOut(p2t);    aOut->Or(*aOut, outR);  }  aIn->FreeRects(rects);}