nsCOMPtr<nsIAtom> tag; rv = aElement->GetTag(getter_AddRefs(tag)); if (NS_FAILED(rv)) return PR_FALSE;
nsIAtom *tag = aElement->Tag();
nsXULContentBuilder::IsLazyWidgetItem(nsIContent* aElement){    // Determine if this is a <tree>, <treeitem>, or <menu> element    nsresult rv;    PRInt32 nameSpaceID;    rv = aElement->GetNameSpaceID(&nameSpaceID);    if (NS_FAILED(rv)) return PR_FALSE;    // XXXhyatt Use the XBL service to obtain a base tag.    nsCOMPtr<nsIAtom> tag;    rv = aElement->GetTag(getter_AddRefs(tag));    if (NS_FAILED(rv)) return PR_FALSE;    if (nameSpaceID != kNameSpaceID_XUL)        return PR_FALSE;    if ((tag.get() == nsXULAtoms::menu) || (tag.get() == nsXULAtoms::menulist) ||        (tag.get() == nsXULAtoms::menubutton) || (tag.get() == nsXULAtoms::toolbarbutton) ||        (tag.get() == nsXULAtoms::button) || (tag == nsXULAtoms::treeitem))        return PR_TRUE;    return PR_FALSE;}