nsIFrame *child; aFrame->FirstChild(aPresContext, nsnull, &child);
nsIFrame *child = aFrame->GetFirstChild(nsnull);
PRBool IsPercentageAwareFrame(nsIPresContext *aPresContext, nsIFrame *aFrame){  if (aFrame->GetStateBits() & NS_FRAME_REPLACED_ELEMENT) {    if (nsLineLayout::IsPercentageAwareReplacedElement(aPresContext, aFrame)) {      return PR_TRUE;    }  }  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) {        return PR_TRUE;      }    }    // else it's a frame we just don't care about  }    return PR_FALSE;}