From e90e235bf3eb8c02a346f677014d13d50789be44 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 13 Nov 2010 15:12:15 -0500 Subject: [PATCH] Bug 611182 - Part 7: Don't notify the edit rules object for document modifications outside of the editable area; r=bzbarsky a=blocking-beta8+ --- editor/libeditor/html/nsHTMLEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index f6a1747eed29..8180a7e131dd 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -3864,7 +3864,7 @@ nsHTMLEditor::ContentInserted(nsIDocument *aDocument, nsIContent* aContainer, ResetRootElementAndEventTarget(); } // We don't need to handle our own modifications - else if (!mAction) { + else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { mRules->DocumentModified(); } } @@ -3878,7 +3878,7 @@ nsHTMLEditor::ContentRemoved(nsIDocument *aDocument, nsIContent* aContainer, ResetRootElementAndEventTarget(); } // We don't need to handle our own modifications - else if (!mAction) { + else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { mRules->DocumentModified(); } }