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

nsContentList Class Reference

#include <nsContentList.h>

Inheritance diagram for nsContentList:

nsContentListKey nsIDOMHTMLCollection nsStubMutationObserver nsIDOMNodeList nsISupports nsIMutationObserver nsISupports nsISupports

List of all members.


Detailed Description

Class that implements a live NodeList that matches nodes in the tree based on some criterion

Definition at line 178 of file nsContentList.h.


Public Member Functions

NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_NSIDOMNODELIST void 
AppendElement (nsIContent *aContent)
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
nsContentListKeyGetKey ()
virtual
NS_DECL_NSIDOMHTMLCOLLECTION
PRInt32 
IndexOf (nsIContent *aContent, PRBool aDoFlush)
nsIDOMNode item (in unsigned long index)
nsIDOMNode item (in unsigned long index)
nsIDOMNode namedItem (in DOMString name)
virtual void NodeWillBeDestroyed (const nsINode *aNode)=0
 NS_HIDDEN_ (nsIContent *) NamedItem(const nsAString &aName
 NS_HIDDEN_ (nsIContent *) Item(PRUint32 aIndex
 NS_HIDDEN_ (PRUint32) Length(PRBool aDoFlush)
 NS_HIDDEN_ (nsISupports *) GetParentObject()
 nsContentList (nsINode *aRootNode, nsContentListMatchFunc aFunc, nsContentListDestroyFunc aDestroyFunc, void *aData, PRBool aDeep=PR_TRUE, nsIAtom *aMatchAtom=nsnull, PRInt32 aMatchNameSpaceId=kNameSpaceID_None, PRBool aFuncMayDependOnAttr=PR_TRUE)
NS_DECL_ISUPPORTS_INHERITED nsContentList (nsINode *aRootNode, nsIAtom *aMatchAtom, PRInt32 aMatchNameSpaceId, PRBool aDeep=PR_TRUE)
virtual void ParentChainChanged (nsIContent *aContent)=0
void RemoveElement (nsIContent *aContent)
void Reset ()
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
static
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
void 
OnDocumentDestroy (nsIDocument *aDocument)
static void Shutdown ()

Public Attributes

PRBool aDoFlush
readonly attribute unsigned long length
readonly attribute unsigned long length

Protected Member Functions

void BringSelfUpToDate (PRBool aDoFlush)
PRBool Equals (const nsContentListKey &aContentListKey) const
PRUint32 GetHash (void) const
PRBool Match (nsIContent *aContent)
PRBool MatchSelf (nsIContent *aContent)
PRBool MayContainRelevantNodes (nsINode *aContainer)
void PopulateSelf (PRUint32 aNeededLength)
void PopulateWith (nsIContent *aContent, PRUint32 &aElementsToAppend)
void PopulateWithStartingAfter (nsINode *aStartRoot, nsINode *aStartChild, PRUint32 &aElementsToAppend)
void RemoveFromHashtable ()
void SetDirty ()

Protected Attributes

void * mData
PRPackedBool mDeep
nsContentListDestroyFunc mDestroyFunc
nsCOMArray< nsIContentmElements
nsContentListMatchFunc mFunc
PRPackedBool mFuncMayDependOnAttr
PRPackedBool mMatchAll
nsCOMPtr< nsIAtom > mMatchAtom
PRInt32 mMatchNameSpaceId
nsINodemRootNode
PRUint8 mState

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

Generated by  Doxygen 1.6.0   Back to index