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:
pkasting%google.com 2006-07-31 22:07:51 +00:00
Родитель 2b188b9c77
Коммит 4e0fef7b1f
1 изменённых файлов: 1 добавлений и 1 удалений

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

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