Bug 611182 - Part 7: Don't notify the edit rules object for document modifications outside of the editable area; r=bzbarsky a=blocking-beta8+

This commit is contained in:
Ehsan Akhgari 2010-11-13 15:12:15 -05:00
parent b713ae82bc
commit e90e235bf3

View File

@ -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();
}
}