NS_IF_RELEASE(tag);
static PRBool IsSignificantChild(nsIContent* aChild, PRBool aAcceptNonWhitespaceText){  nsIAtom* tag;  aChild->GetTag(tag); // skip text & comments  if ((tag != nsLayoutAtoms::textTagName) &&       (tag != nsLayoutAtoms::commentTagName) &&      (tag != nsLayoutAtoms::processingInstructionTagName)) {    NS_IF_RELEASE(tag);    return PR_TRUE;  }  if (aAcceptNonWhitespaceText) {    if (tag == nsLayoutAtoms::textTagName) {  // skip only whitespace text      nsITextContent* text = nsnull;      if (NS_SUCCEEDED(aChild->QueryInterface(NS_GET_IID(nsITextContent), (void**)&text))) {        PRBool  isWhite;        text->IsOnlyWhitespace(&isWhite);        NS_RELEASE(text);        if (! isWhite) {          NS_RELEASE(tag);          return PR_TRUE;        }      }    }  }  NS_IF_RELEASE(tag);  return PR_FALSE;}