nsHTMLEditor::RemoveList(const nsString& aListType)
nsHTMLEditor::RemoveList(const nsAReadableString& aListType)
nsHTMLEditor::RemoveList(const nsString& aListType){  nsresult res;  if (!mRules) { return NS_ERROR_NOT_INITIALIZED; }  nsCOMPtr<nsIDOMSelection> selection;  PRBool cancel, handled;  nsAutoEditBatch beginBatching(this);  nsAutoRules beginRulesSniffing(this, kOpRemoveList, nsIEditor::eNext);    // pre-process  res = GetSelection(getter_AddRefs(selection));  if (NS_FAILED(res)) return res;  if (!selection) return NS_ERROR_NULL_POINTER;  nsTextRulesInfo ruleInfo(nsHTMLEditRules::kRemoveList);  if (aListType == "ol") ruleInfo.bOrdered = PR_TRUE;  else  ruleInfo.bOrdered = PR_FALSE;  res = mRules->WillDoAction(selection, &ruleInfo, &cancel, &handled);  if (cancel || (NS_FAILED(res))) return res;  // no default behavior for this yet.  what would it mean?  res = mRules->DidDoAction(selection, &ruleInfo, res);  return res;}