nsCOMPtr<nsIAtom> tag; aParent->GetTag(getter_AddRefs(tag)); if (tag.get() == nsXULAtoms::listboxbody) {
if (aParent->Tag() == nsXULAtoms::listboxbody) {
FindBodyContent(nsIContent* aParent, nsIContent** aResult){  nsCOMPtr<nsIAtom> tag;  aParent->GetTag(getter_AddRefs(tag));  if (tag.get() == nsXULAtoms::listboxbody) {    *aResult = aParent;    NS_IF_ADDREF(*aResult);  }  else {    nsCOMPtr<nsIDOMNodeList> kids;    aParent->GetDocument()->GetBindingManager()->GetXBLChildNodesFor(aParent, getter_AddRefs(kids));    if (!kids) return;    PRUint32 i;    kids->GetLength(&i);    // start from the end, cuz we're smart and we know the listboxbody is probably at the end    while (i > 0) {      nsCOMPtr<nsIDOMNode> childNode;      kids->Item(--i, getter_AddRefs(childNode));      nsCOMPtr<nsIContent> childContent(do_QueryInterface(childNode));      FindBodyContent(childContent, aResult);      if (*aResult)        break;    }  }}