float p2t; aPresContext->GetScaledPixelsToTwips(&p2t);    if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedWidth) { aDesiredSize.width = aReflowState.mComputedWidth; } else { aDesiredSize.width = NSIntPixelsToTwips(200, p2t); } if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedHeight) { aDesiredSize.height = aReflowState.mComputedHeight; } else { aDesiredSize.height = NSIntPixelsToTwips(200, p2t); } aDesiredSize.ascent = aDesiredSize.height;
NS_ASSERTION(0, "this should never be called"); aDesiredSize.width   = 0; aDesiredSize.height  = 0; aDesiredSize.ascent  = 0;
nsHTMLFrameOuterFrame::GetDesiredSize(nsIPresContext* aPresContext,                                      const nsHTMLReflowState& aReflowState,                                      nsHTMLReflowMetrics& aDesiredSize){  // <frame> processing does not use this routine, only <iframe>  float p2t;  aPresContext->GetScaledPixelsToTwips(&p2t);  // XXX this needs to be changed from (200,200) to a better default  // for inline frames  if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedWidth) {    aDesiredSize.width = aReflowState.mComputedWidth;  }  else {    aDesiredSize.width = NSIntPixelsToTwips(200, p2t);  }  if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedHeight) {    aDesiredSize.height = aReflowState.mComputedHeight;  }  else {    aDesiredSize.height = NSIntPixelsToTwips(200, p2t);  }  aDesiredSize.ascent = aDesiredSize.height;  aDesiredSize.descent = 0;}