mContext->GetPixelsToTwips(&ptot);
ptot = mContext->PixelsToTwips();
NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(nsPluginRect *invalidRect){  nsresult rv = NS_ERROR_FAILURE;  if(invalidRect)  {    //no reference count on view    nsIView* view = mOwner->GetView();    if (view)    {      float ptot;      mContext->GetPixelsToTwips(&ptot);      nsRect rect((int)(ptot * invalidRect->left),            (int)(ptot * invalidRect->top),            (int)(ptot * (invalidRect->right - invalidRect->left)),            (int)(ptot * (invalidRect->bottom - invalidRect->top)));      //set flags to not do a synchronous update, force update does the redraw      view->GetViewManager()->UpdateView(view, rect, NS_VMREFRESH_NO_SYNC);    }  }  return rv;}