NS_ENSURE_TRUE(window, NS_ERROR_NULL_POINTER);
nsObjectFrame::ReinstantiatePlugin(nsPresContext* aPresContext, nsHTMLReflowMetrics& aMetrics, const nsHTMLReflowState& aReflowState){  nsIView *parentWithView;  nsPoint origin;  nsPluginWindow  *window;  float           t2p;  t2p = aPresContext->TwipsToPixels();  // we need to recalculate this now that we have access to the nsPluginInstanceOwner  // and its size info (as set in the tag)  GetDesiredSize(aPresContext, aReflowState, aMetrics);  mInstanceOwner->GetWindow(window);    NS_ENSURE_TRUE(window, NS_ERROR_NULL_POINTER);  GetOffsetFromView(aPresContext, origin, &parentWithView);  window->x = NSTwipsToIntPixels(origin.x, t2p);  window->y = NSTwipsToIntPixels(origin.y, t2p);  window->width = NSTwipsToIntPixels(aMetrics.width, t2p);  window->height = NSTwipsToIntPixels(aMetrics.height, t2p);  // ignore this for now on the Mac because the widget is not properly positioned  // yet and won't be until we have finished the reflow process.#if defined(XP_MAC) || defined(XP_MACOSX)  window->clipRect.top = 0;  window->clipRect.left = 0;  window->clipRect.bottom = NSTwipsToIntPixels(aMetrics.height, t2p);  window->clipRect.right = NSTwipsToIntPixels(aMetrics.width, t2p);#endif  return NS_OK;}