rv = NS_OK; }
rv = NS_OK;
NS_IMETHODIMP nsPluginInstanceOwner::GetTagType(nsPluginTagType *result){  NS_ENSURE_ARG_POINTER(result);  nsresult rv = NS_ERROR_FAILURE;  *result = nsPluginTagType_Unknown;  if (mOwner)  {    nsIContent* cont = mOwner->GetContent();    if (cont)    {      nsCOMPtr<nsIAtom> atom;      cont->GetTag(getter_AddRefs(atom));      if (atom)      {        if (atom == nsHTMLAtoms::applet)          *result = nsPluginTagType_Applet;        else if (atom == nsHTMLAtoms::embed)          *result = nsPluginTagType_Embed;        else if (atom == nsHTMLAtoms::object)          *result = nsPluginTagType_Object;        rv = NS_OK;      }    }  }  return rv;}