nsHTMLEditor::Undo(PRUint32 aCount)
NS_IMETHODIMP nsHTMLEditor::Undo(PRUint32 aCount)
nsHTMLEditor::Undo(PRUint32 aCount){  ForceCompositionEnd();  nsresult result = NS_OK;  BeginUpdateViewBatch();  nsTextRulesInfo ruleInfo(nsTextEditRules::kUndo);  nsCOMPtr<nsIDOMSelection> selection;  GetSelection(getter_AddRefs(selection));  PRBool cancel, handled;  result = mRules->WillDoAction(selection, &ruleInfo, &cancel, &handled);    if (!cancel && NS_SUCCEEDED(result))  {    result = nsEditor::Undo(aCount);    result = mRules->DidDoAction(selection, &ruleInfo, result);  }      EndUpdateViewBatch();  return result;}