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
Родитель b713ae82bc
Коммит e90e235bf3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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