nsIFrame *child; nsresult result = FirstChild(aPresContext, nsnull, &child); if (NS_FAILED(result)) return NS_OK;
nsIFrame *child = GetFirstChild(nsnull);
nsFirstLetterFrame::SetSelected(nsIPresContext* aPresContext, nsIDOMRange *aRange,PRBool aSelected, nsSpread aSpread){  if (aSelected && ParentDisablesSelection())    return NS_OK;  nsIFrame *child;  nsresult result = FirstChild(aPresContext, nsnull, &child);  if (NS_FAILED(result))    return NS_OK;  while (child)  {    child->SetSelected(aPresContext, aRange, aSelected, aSpread);    // don't worry about result. there are more frames to come    child = child->GetNextSibling();  }  return NS_OK;}