GetOffsetFromView(&aPresContext, origin, &parentWithView);
GetOffsetFromView(origin, &parentWithView);
nsObjectFrame::InstantiateWidget(nsIPresContext&          aPresContext,							nsHTMLReflowMetrics&     aMetrics,							const nsHTMLReflowState& aReflowState,							nsCID aWidgetCID){  nsresult rv;  GetDesiredSize(&aPresContext, aReflowState, aMetrics);  nsIView *parentWithView;  nsPoint origin;  GetOffsetFromView(&aPresContext, origin, &parentWithView);  // Just make the frigging widget  float           t2p;  aPresContext.GetTwipsToPixels(&t2p);  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);  static NS_DEFINE_IID(kIWidgetIID, NS_IWIDGET_IID);  if((rv = nsComponentManager::CreateInstance(aWidgetCID, nsnull, kIWidgetIID, (void**)&mWidget)) != NS_OK)    return rv;  nsIWidget *parent;  parentWithView->GetOffsetFromWidget(nsnull, nsnull, parent);  mWidget->Create(parent, r, nsnull, nsnull);  mWidget->Show(PR_TRUE);  return rv;}