NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr"); if (nsnull == aInstancePtrResult) { return NS_ERROR_NULL_POINTER;
NS_ENSURE_ARG_POINTER(aInstancePtrResult);   nsCOMPtr<nsINodeInfo> nodeInfo(aNodeInfo); if (!nodeInfo) { nsCOMPtr<nsINodeInfoManager> nodeInfoManager; nsresult rv; rv = nsNodeInfoManager::GetAnonymousManager(*getter_AddRefs(nodeInfoManager)); NS_ENSURE_SUCCESS(rv, rv);  rv = nodeInfoManager->GetNodeInfo(nsHTMLAtoms::option, nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); NS_ENSURE_SUCCESS(rv, rv);
NS_NewHTMLOptionElement(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  nsIHTMLContent* it = new nsHTMLOptionElement(aTag);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIHTMLContentIID, (void**) aInstancePtrResult);}