зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b713ae82bc
Коммит
e90e235bf3
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче