mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
api change to insertion filter to add flag for delete selection; r=timeless; sr= kin; a=asa; bug=204066
This commit is contained in:
parent
0f98e1c43e
commit
1e15da633f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user