Bug 709523 - Part g: Remove nsHTMLEditRules::{Will,Did}DeleteRange; r=ehsan a=edmorley
authorMs2ger <ms2ger@gmail.com>
Sun, 11 Dec 2011 21:03:49 +0100
changeset 82424 3d6f670f417fac5bc09bc44a53cb43f8713a78c7
parent 82423 77b565997e66d98b71525ef113c2b8e9e22979f2
child 82425 ab91118be5604f770fbc3c8f73ab2c0f71375412
push id383
push usertim.taubert@gmx.de
push dateMon, 12 Dec 2011 13:18:44 +0000
treeherderfx-team@a3002672881e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, edmorley
bugs709523
milestone11.0a1
Bug 709523 - Part g: Remove nsHTMLEditRules::{Will,Did}DeleteRange; r=ehsan a=edmorley
editor/libeditor/html/nsHTMLEditRules.cpp
editor/libeditor/html/nsHTMLEditRules.h
--- a/editor/libeditor/html/nsHTMLEditRules.cpp
+++ b/editor/libeditor/html/nsHTMLEditRules.cpp
@@ -8664,32 +8664,16 @@ nsHTMLEditRules::DidDeleteText(nsIDOMCha
   NS_ENSURE_SUCCESS(res, res);
   res = mUtilRange->SetEnd(theNode, aOffset);
   NS_ENSURE_SUCCESS(res, res);
   res = UpdateDocChangeRange(mUtilRange);
   return res;  
 }
 
 NS_IMETHODIMP
-nsHTMLEditRules::WillDeleteRange(nsIDOMRange *aRange)
-{
-  if (!mListenerEnabled) {
-    return NS_OK;
-  }
-  // get the (collapsed) selection location
-  return UpdateDocChangeRange(aRange);
-}
-
-NS_IMETHODIMP
-nsHTMLEditRules::DidDeleteRange(nsIDOMRange *aRange)
-{
-  return NS_OK;
-}
-
-NS_IMETHODIMP
 nsHTMLEditRules::WillDeleteSelection(nsISelection *aSelection)
 {
   if (!mListenerEnabled) {
     return NS_OK;
   }
   // get the (collapsed) selection location
   nsCOMPtr<nsIDOMNode> selNode;
   PRInt32 selOffset;
--- a/editor/libeditor/html/nsHTMLEditRules.h
+++ b/editor/libeditor/html/nsHTMLEditRules.h
@@ -113,18 +113,16 @@ public:
   NS_IMETHOD WillSplitNode(nsIDOMNode *aExistingRightNode, PRInt32 aOffset);
   NS_IMETHOD DidSplitNode(nsIDOMNode *aExistingRightNode, PRInt32 aOffset, nsIDOMNode *aNewLeftNode, nsresult aResult);
   NS_IMETHOD WillJoinNodes(nsIDOMNode *aLeftNode, nsIDOMNode *aRightNode, nsIDOMNode *aParent);
   NS_IMETHOD DidJoinNodes(nsIDOMNode  *aLeftNode, nsIDOMNode *aRightNode, nsIDOMNode *aParent, nsresult aResult);
   NS_IMETHOD WillInsertText(nsIDOMCharacterData *aTextNode, PRInt32 aOffset, const nsAString &aString);
   NS_IMETHOD DidInsertText(nsIDOMCharacterData *aTextNode, PRInt32 aOffset, const nsAString &aString, nsresult aResult);
   NS_IMETHOD WillDeleteText(nsIDOMCharacterData *aTextNode, PRInt32 aOffset, PRInt32 aLength);
   NS_IMETHOD DidDeleteText(nsIDOMCharacterData *aTextNode, PRInt32 aOffset, PRInt32 aLength, nsresult aResult);
-  NS_IMETHOD WillDeleteRange(nsIDOMRange *aRange);
-  NS_IMETHOD DidDeleteRange(nsIDOMRange *aRange);
   NS_IMETHOD WillDeleteSelection(nsISelection *aSelection);
   NS_IMETHOD DidDeleteSelection(nsISelection *aSelection);
 
 protected:
 
   enum RulesEndpoint
   {
     kStart,