if ((nameSpaceID == kNameSpaceID_XUL) && ((tag.get() == nsXULAtoms::tree) || (tag.get() == nsXULAtoms::treeitem))) {
if (nameSpaceID != kNameSpaceID_XUL) return PR_FALSE;  if ((tag.get() == nsXULAtoms::tree) || (tag.get() == nsXULAtoms::treeitem))
nsXULTemplateBuilder::IsTreeWidgetItem(nsIContent* aElement){    // Determine if this is a <tree> or a <treeitem> tag, in which    // case, some special logic will kick in to force batched reflows.    // XXX Should be removed when Bug 10818 is fixed.    nsresult rv;    PRInt32 nameSpaceID;    rv = aElement->GetNameSpaceID(nameSpaceID);    if (NS_FAILED(rv)) return PR_FALSE;    nsCOMPtr<nsIAtom> tag;    rv = aElement->GetTag(*getter_AddRefs(tag));    if (NS_FAILED(rv)) return PR_FALSE;    // If we're building content under a <tree> or a <treeitem>,    // then DO NOT notify layout until we're all done.    if ((nameSpaceID == kNameSpaceID_XUL) &&        ((tag.get() == nsXULAtoms::tree) || (tag.get() == nsXULAtoms::treeitem))) {        return PR_TRUE;    }    else {        return PR_FALSE;    }}