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

nsStubDocumentObserver Class Reference

#include <nsStubDocumentObserver.h>

Inheritance diagram for nsStubDocumentObserver:

nsIMutationObserver nsISupports nsXULTemplateBuilder nsXULContentBuilder nsXULTreeBuilder

List of all members.


Detailed Description

There are two advantages to inheriting from nsStubDocumentObserver rather than directly from nsIDocumentObserver: 1. smaller compiled code size (since there's no need for the code for the empty virtual function implementations for every nsIDocumentObserver 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 nsStubDocumentObserver.h.


Public Member Functions

virtual void AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask)=0
virtual void BeginLoad (nsIDocument *aDocument)=0
virtual void BeginUpdate (nsIDocument *aDocument, nsUpdateType aUpdateType)=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 ContentStatesChanged (nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2, PRInt32 aStateMask)=0
virtual void EndLoad (nsIDocument *aDocument)=0
virtual void EndUpdate (nsIDocument *aDocument, nsUpdateType aUpdateType)=0
virtual void NodeWillBeDestroyed (const nsINode *aNode)=0
virtual void ParentChainChanged (nsIContent *aContent)=0
virtual void StyleRuleAdded (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)=0
virtual void StyleRuleChanged (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule, nsIStyleRule *aNewStyleRule)=0
virtual void StyleRuleRemoved (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)=0
virtual void StyleSheetAdded (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet)=0
virtual void StyleSheetApplicableStateChanged (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aApplicable)=0
virtual void StyleSheetRemoved (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet)=0
Methods
 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