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

nsContentList::nsContentList ( nsINode aRootNode,
nsIAtom *  aMatchAtom,
PRInt32  aMatchNameSpaceId,
PRBool  aDeep = PR_TRUE 
)

Parameters:
aRootNode The node under which to limit our search.
aMatchAtom An atom whose meaning depends on aMatchNameSpaceId. The special value "*" always matches whatever aMatchAtom is matched against.
aMatchNameSpaceId If kNameSpaceID_Unknown, then aMatchAtom is the tagName to match. If kNameSpaceID_Wildcard, then aMatchAtom is the localName to match. Otherwise we match nodes whose namespace is aMatchNameSpaceId and localName matches aMatchAtom.
aDeep If false, then look only at children of the root, nothing deeper. If true, then look at the whole subtree rooted at our root.

Definition at line 290 of file nsContentList.cpp.

References nsINode::AddMutationObserver(), and mMatchAll.

  : nsBaseContentList(),
    nsContentListKey(aRootNode, aMatchAtom, aMatchNameSpaceId),
    mFunc(nsnull),
    mDestroyFunc(nsnull),
    mData(nsnull),
    mState(LIST_DIRTY),
    mDeep(aDeep),
    mFuncMayDependOnAttr(PR_FALSE)
{
  NS_ASSERTION(mRootNode, "Must have root");
  if (nsGkAtoms::_asterix == mMatchAtom) {
    mMatchAll = PR_TRUE;
  }
  else {
    mMatchAll = PR_FALSE;
  }
  mRootNode->AddMutationObserver(this);
}


Generated by  Doxygen 1.6.0   Back to index