зеркало из https://github.com/mozilla/pjs.git
Followup to bug 339127: Only sync the editor on attribute changes that
have aNotify true. When aNotify is false, there shouldn't be an editor to sync, so this should save a little time. r+sr=bzbarsky
This commit is contained in:
Родитель
2b188b9c77
Коммит
4e0fef7b1f
|
@ -1700,7 +1700,7 @@ nsGenericHTMLElement::AfterSetAttr(PRInt32 aNamespaceID, nsIAtom* aName,
|
|||
nsresult rv = AddScriptEventListener(aName, *aValue);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
else if (aName == nsHTMLAtoms::spellcheck) {
|
||||
else if (aNotify && aName == nsHTMLAtoms::spellcheck) {
|
||||
nsCOMPtr<nsIEditor> editor = GetAssociatedEditor();
|
||||
if (editor) {
|
||||
editor->SyncRealTimeSpell();
|
||||
|
|
Загрузка…
Ссылка в новой задаче