Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsTreeWalker.h File Reference
#include "nsIDOMNode.h"
#include "nsIDOMTreeWalker.h"
#include "nsIDOMNodeFilter.h"
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsIDOMGCParticipant.h"
#include "nsJSUtils.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsTreeWalker

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: