NS_ENSURE_TRUE(gDefaultElementFactory, NS_ERROR_FAILURE); *aHasFactory = ef != gDefaultElementFactory;
*aHasFactory = ef != mDefaultElementFactory;
NameSpaceManagerImpl::HasRegisteredFactory(PRInt32 aNameSpaceID,                                           PRBool* aHasFactory){  *aHasFactory = PR_FALSE;  nsCOMPtr<nsIElementFactory> ef;  GetElementFactory(aNameSpaceID, getter_AddRefs(ef));  NS_ENSURE_TRUE(gDefaultElementFactory, NS_ERROR_FAILURE);  *aHasFactory = ef != gDefaultElementFactory;  return NS_OK;}