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