From df5fbef10f7219b80bfe8fcaae9885836b5df5b5 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Fri, 9 May 2003 18:32:50 +0000 Subject: [PATCH] api change to insertion filter to add flag for delete selection; r=timeless; sr= kin; a=asa; bug=204066 git-svn-id: svn://10.0.0.236/trunk@142276 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp index cb6a9252cc0..c051c352cab 100644 --- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -328,7 +328,7 @@ nsHTMLEditor::InsertHTMLWithCharsetAndContext(const nsAString & aInputString, PRBool doContinue = PR_TRUE; - res = DoContentFilterCallback(aFlavor, + res = DoContentFilterCallback(aFlavor, aDeleteSelection, (nsIDOMNode **)address_of(fragmentAsNode), (nsIDOMNode **)address_of(streamStartParent), &streamStartOffset, @@ -788,6 +788,7 @@ nsHTMLEditor::RemoveInsertionListener(nsIContentFilter *aListener) nsresult nsHTMLEditor::DoContentFilterCallback(const nsAString &aFlavor, + PRBool aWillDeleteSelection, nsIDOMNode **aFragmentAsNode, nsIDOMNode **aFragStartNode, PRInt32 *aFragStartOffset, @@ -805,7 +806,8 @@ nsHTMLEditor::DoContentFilterCallback(const nsAString &aFlavor, { listener = (nsIContentFilter *)mContentFilters[i]; if (listener) - listener->NotifyOfInsertion(aFlavor, nsnull, aFragmentAsNode, + listener->NotifyOfInsertion(aFlavor, nsnull, aWillDeleteSelection, + aFragmentAsNode, aFragStartNode, aFragStartOffset, aFragEndNode, aFragEndOffset, aTargetNode, aTargetOffset, aDoContinue);