Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
CSharedParserObjects Class Reference

List of all members.

Public Member Functions

 CSharedParserObjects ()
 ~CSharedParserObjects ()
nsresult Init ()
nsresult RegisterDTD (nsIDTD *aDTD)

Public Attributes

nsDeque mDTDDeque
PRBool mHasViewSourceDTD
PRBool mHasXMLDTD

Detailed Description

Definition at line 119 of file nsParser.cpp.


Constructor & Destructor Documentation

Definition at line 122 of file nsParser.cpp.

Definition at line 130 of file nsParser.cpp.

                          {
    CDTDDeallocator theDeallocator;
    mDTDDeque.ForEach(theDeallocator);  //release all the DTD's
  }

Member Function Documentation

Definition at line 135 of file nsParser.cpp.

                  {
    //Note: To cut down on startup time/overhead, we defer the construction of non-html DTD's. 
    nsIDTD* theDTD = 0;
    nsresult rv = NS_NewNavHTMLDTD(&theDTD);    //do this as a default HTML DTD...
    
    NS_ASSERTION(theDTD, "Failed to create DTD");
    NS_ENSURE_SUCCESS(rv, rv);
    
    mDTDDeque.Push(theDTD);
    mHasViewSourceDTD = PR_FALSE;
    mHasXMLDTD = PR_FALSE;
    return NS_OK;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 149 of file nsParser.cpp.

                                     {
    NS_ENSURE_ARG_POINTER(aDTD);
    nsCOMPtr<nsIDTD> dtd(aDTD);
    CDTDFinder theFinder(dtd);
    if (!mDTDDeque.FirstThat(theFinder)) {
      nsIDTD* theDTD;
      nsresult rv = dtd->CreateNewInstance(&theDTD);
      NS_ENSURE_SUCCESS(rv, rv);
      mDTDDeque.Push(theDTD);
    }
    return NS_OK;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 162 of file nsParser.cpp.

Definition at line 163 of file nsParser.cpp.

Definition at line 164 of file nsParser.cpp.


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