t2p = aPresContext->TwipsToPixels();
aPresContext->GetTwipsToPixels(&t2p);
nsObjectFrame::InstantiateWidget(nsPresContext*           aPresContext,                                 nsHTMLReflowMetrics&     aMetrics,                                 const nsHTMLReflowState& aReflowState,                                 nsCID aWidgetCID){  nsresult rv;  GetDesiredSize(aPresContext, aReflowState, aMetrics);  nsIView *parentWithView;  nsPoint origin;  GetOffsetFromView(origin, &parentWithView);  // Just make the frigging widget  float           t2p;  t2p = aPresContext->TwipsToPixels();  PRInt32 x = NSTwipsToIntPixels(origin.x, t2p);  PRInt32 y = NSTwipsToIntPixels(origin.y, t2p);  PRInt32 width = NSTwipsToIntPixels(aMetrics.width, t2p);  PRInt32 height = NSTwipsToIntPixels(aMetrics.height, t2p);  nsRect r = nsRect(x, y, width, height);  mWidget = do_CreateInstance(aWidgetCID, &rv);  if (NS_FAILED(rv)) {    return rv;  }  mWidget->Create(parentWithView->GetNearestWidget(nsnull), r, nsnull, nsnull);  mWidget->Show(PR_TRUE);  return rv;}