if (aMetrics.width || aMetrics.height) {  if (!aMetrics.width) aMetrics.width = 1; if (!aMetrics.height) aMetrics.height = 1; }
SpacerFrame::Reflow(nsIPresContext&          aPresContext,                    nsHTMLReflowMetrics&     aMetrics,                    const nsHTMLReflowState& aReflowState,                    nsReflowStatus&          aStatus){  aStatus = NS_FRAME_COMPLETE;  // By default, we have no area  aMetrics.width = 0;  aMetrics.height = 0;  aMetrics.ascent = 0;  aMetrics.descent = 0;  nscoord width = 0;  nscoord height = 0;  PRUint8 type = GetType();  nsresult ca;  nsIHTMLContent* hc = nsnull;  mContent->QueryInterface(kIHTMLContentIID, (void**) &hc);  if (nsnull != hc) {    if (type != TYPE_IMAGE) {      nsHTMLValue val;      ca = hc->GetHTMLAttribute(nsHTMLAtoms::size, val);      if (NS_CONTENT_ATTR_HAS_VALUE == ca) {        width = val.GetPixelValue();      }    } else {      nsHTMLValue val;      ca = hc->GetHTMLAttribute(nsHTMLAtoms::width, val);      if (NS_CONTENT_ATTR_HAS_VALUE == ca) {        if (eHTMLUnit_Pixel == val.GetUnit()) {          width = val.GetPixelValue();        }      }      ca = hc->GetHTMLAttribute(nsHTMLAtoms::height, val);      if (NS_CONTENT_ATTR_HAS_VALUE == ca) {        if (eHTMLUnit_Pixel == val.GetUnit()) {          height = val.GetPixelValue();        }      }    }    NS_RELEASE(hc);  }  float p2t;  aPresContext.GetScaledPixelsToTwips(&p2t);  switch (type) {  case TYPE_WORD:    if (0 != width) {      aMetrics.width = NSIntPixelsToTwips(width, p2t);    }    break;  case TYPE_LINE:    if (0 != width) {      aStatus = NS_INLINE_LINE_BREAK_AFTER(NS_FRAME_COMPLETE);      aMetrics.height = NSIntPixelsToTwips(width, p2t);      aMetrics.ascent = aMetrics.height;    }    break;  case TYPE_IMAGE:    aMetrics.width = NSIntPixelsToTwips(width, p2t);    aMetrics.height = NSIntPixelsToTwips(height, p2t);    aMetrics.ascent = aMetrics.height;    break;  }  if (nsnull != aMetrics.maxElementSize) {    aMetrics.maxElementSize->width = aMetrics.width;    aMetrics.maxElementSize->height = aMetrics.height;  }  return NS_OK;}