Bug 344453: AttributeChanged events sent out twice. Also make CharacterDataChanged notifications go out even for orphaned nodes. r/sr=jst

This commit is contained in:
cvshook%sicking.cc 2006-07-18 01:26:33 +00:00
Родитель 33268d4ae1
Коммит 4e266c0a89
2 изменённых файлов: 1 добавлений и 6 удалений

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

@ -1012,7 +1012,7 @@ nsGenericDOMDataNode::SetText(const PRUnichar* aBuffer,
}
// Trigger a reflow
if (aNotify && document) {
if (aNotify) {
nsNodeUtils::CharacterDataChanged(this, PR_FALSE);
}
}

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

@ -947,11 +947,6 @@ nsXULDocument::AttributeChanged(nsIDocument* aDocument,
}
}
// Now notify external observers
NS_DOCUMENT_NOTIFY_OBSERVERS(AttributeChanged,
(this, aElement, aNameSpaceID,
aAttribute, aModType));
// See if there is anything we need to persist in the localstore.
//
// XXX Namespace handling broken :-(