Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsTreeWalker.cpp File Reference
#include "nsTreeWalker.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMEntityReference.h"
#include "nsDOMError.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsContentUtils.h"
#include "nsMemory.h"

Go to the source code of this file.

Functions

nsresult NS_NewTreeWalker (nsIDOMNode *aRoot, PRUint32 aWhatToShow, nsIDOMNodeFilter *aFilter, PRBool aEntityReferenceExpansion, nsIDOMTreeWalker **aInstancePtrResult)

Function Documentation

nsresult NS_NewTreeWalker ( nsIDOMNode aRoot,
PRUint32  aWhatToShow,
nsIDOMNodeFilter aFilter,
PRBool  aEntityReferenceExpansion,
nsIDOMTreeWalker **  aInstancePtrResult 
)

Definition at line 62 of file nsTreeWalker.cpp.

                                                        {

    NS_ENSURE_ARG_POINTER(aInstancePtrResult);

    NS_ENSURE_TRUE(aRoot, NS_ERROR_DOM_NOT_SUPPORTED_ERR);

    nsTreeWalker* walker = new nsTreeWalker(aRoot,
                                            aWhatToShow,
                                            aFilter,
                                            aEntityReferenceExpansion);
    NS_ENSURE_TRUE(walker, NS_ERROR_OUT_OF_MEMORY);

    return CallQueryInterface(walker, aInstancePtrResult);
}

Here is the call graph for this function: