nsIFrame* kid = nsnull;  for (aParent->FirstChild(aPresContext, nsnull, &kid); kid;
for (nsIFrame* kid = aParent->GetFirstChild(nsnull); kid;
HasTextFrameDescendant(nsIPresContext* aPresContext, nsIFrame* aParent){  nsIFrame* kid = nsnull;      for (aParent->FirstChild(aPresContext, nsnull, &kid); kid;       kid = kid->GetNextSibling())  {    if (kid->GetType() == nsLayoutAtoms::textFrame) {      // This is only a candidate. We need to determine if this text      // frame is empty, as in containing only (non-pre) whitespace.      // See bug 20163.      if (!kid->IsEmpty()) {        return PR_TRUE;      }    }    if (HasTextFrameDescendant(aPresContext, kid)) {      return PR_TRUE;    }  }  return PR_FALSE;}