#include <nsIMutationObserver.h>
See nsINode::AddMutationObserver, nsINode::RemoveMutationObserver for how to attach or remove your observers.
WARNING: During these notifications, you are not allowed to perform any mutations to the current or any other document, or start a network load. If you need to perform such operations do that during the _last_ nsIDocumentObserver::EndUpdate notification. The expection for this is ParentChainChanged, where mutations should be done from an async event, as the notification might not be surrounded by BeginUpdate/EndUpdate calls.
Definition at line 104 of file nsIMutationObserver.h.
Public Member Functions | |
virtual void | AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask)=0 |
virtual void | CharacterDataChanged (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0 |
virtual void | CharacterDataWillChange (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0 |
virtual void | ContentAppended (nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer)=0 |
virtual void | ContentInserted (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0 |
virtual void | ContentRemoved (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0 |
virtual void | NodeWillBeDestroyed (const nsINode *aNode)=0 |
virtual void | ParentChainChanged (nsIContent *aContent)=0 |
Methods | |
NS_IMETHOD_ (nsrefcnt) Release(void)=0 | |
NS_IMETHOD_ (nsrefcnt) AddRef(void)=0 | |
NS_IMETHOD | QueryInterface (REFNSIID aIID, void **aInstancePtr)=0 |