nsObjectFrame::HandleImage(nsIPresContext*          aPresContext,
nsObjectFrame::HandleImage(nsIPresContext&          aPresContext,
nsObjectFrame::HandleImage(nsIPresContext*          aPresContext,						   nsHTMLReflowMetrics&     aMetrics,						   const nsHTMLReflowState& aReflowState,						   nsReflowStatus&          aStatus,						   nsIFrame* child){	nsSize availSize(NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE);	nsHTMLReflowMetrics kidDesiredSize(nsnull);	nsReflowReason reflowReason;	nsFrameState frameState;	child->GetFrameState(&frameState);	if (frameState & NS_FRAME_FIRST_REFLOW)	  reflowReason = eReflowReason_Initial;	else	  reflowReason = eReflowReason_Resize;	nsHTMLReflowState kidReflowState(aPresContext, aReflowState, child,									 availSize, reflowReason);	nsReflowStatus status;	if(PR_TRUE)//reflowReason == eReflowReason_Initial)	{	  kidDesiredSize.width = NS_UNCONSTRAINEDSIZE;	  kidDesiredSize.height = NS_UNCONSTRAINEDSIZE;	}  // adjust kidReflowState  nsIHTMLContent* hc = nsnull;  mContent->QueryInterface(kIHTMLContentIID, (void**) &hc);  if(hc != nsnull)  {    float p2t;    aPresContext->GetScaledPixelsToTwips(&p2t);    nsHTMLValue val;    if(NS_CONTENT_ATTR_HAS_VALUE == hc->GetHTMLAttribute(nsHTMLAtoms::width, val))    {      if(eHTMLUnit_Pixel == val.GetUnit())      {        nscoord width = val.GetPixelValue();        kidReflowState.mComputedWidth = NSIntPixelsToTwips(width, p2t);      }    }    if(NS_CONTENT_ATTR_HAS_VALUE == hc->GetHTMLAttribute(nsHTMLAtoms::height, val))    {      if(eHTMLUnit_Pixel == val.GetUnit())      {        nscoord height = val.GetPixelValue();        kidReflowState.mComputedHeight = NSIntPixelsToTwips(height, p2t);      }    }  }	ReflowChild(child, aPresContext, kidDesiredSize, kidReflowState, 0, 0, 0, status);  FinishReflowChild(child, aPresContext, kidDesiredSize, 0, 0, 0);	aMetrics.width = kidDesiredSize.width;	aMetrics.height = kidDesiredSize.height;	aMetrics.ascent = kidDesiredSize.height;	aMetrics.descent = 0;  aStatus = NS_FRAME_COMPLETE;	return NS_OK;}