Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

nsStubMutationObserver Class Reference

#include <nsStubMutationObserver.h>

Inheritance diagram for nsStubMutationObserver:

nsIMutationObserver nsISupports nsAttributeTextNode nsContentList nsEditor nsScriptElement nsXPathResult txMozillaXSLTProcessor nsPlaintextEditor nsXULDocument nsHTMLEditor nsHTMLEditorLog

List of all members.

Detailed Description

There are two advantages to inheriting from nsStubMutationObserver rather than directly from nsIMutationObserver: 1. smaller compiled code size (since there's no need for the code for the empty virtual function implementations for every nsIMutationObserver implementation) 2. the performance of document's loop over observers benefits from the fact that more of the functions called are the same (which can reduce instruction cache misses and perhaps improve branch prediction)

Definition at line 61 of file nsStubMutationObserver.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
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index