nsIFrame *child; aFrame->FirstChild(aPresContext, nsnull, &child); if (child)
if (aFrame->GetFirstChild(nsnull))
void MarkPercentAwareFrame(nsIPresContext *aPresContext,                            nsInlineFrame  *aInline,                           nsIFrame       *aFrame){  if (aFrame->GetStateBits() & NS_FRAME_REPLACED_ELEMENT)   { // aFrame is a replaced element, check it's style    if (nsLineLayout::IsPercentageAwareReplacedElement(aPresContext, aFrame)) {      SetContainsPercentAwareChild(aInline);    }  }  else  {    nsIFrame *child;    aFrame->FirstChild(aPresContext, nsnull, &child);    if (child)    { // aFrame is an inline container frame, check my frame state      if (aFrame->GetStateBits() & NS_INLINE_FRAME_CONTAINS_PERCENT_AWARE_CHILD) {        SetContainsPercentAwareChild(aInline); // if a child container is effected, so am I      }    }    // else frame is a leaf that we don't care about  }   }