XPCOM'ing the parser. Use repository to get a parser now.

git-svn-id: svn://10.0.0.236/trunk@6893 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider%netscape.com
1998-07-30 22:42:27 +00:00
parent 4c38e53112
commit 443dbc8a98
32 changed files with 742 additions and 74 deletions

View File

@@ -40,6 +40,8 @@
#include "nsIScriptGlobalObject.h"
#include "nsContentList.h"
#include "nsINetService.h"
#include "nsRepository.h"
#include "nsParserCIID.h"
//#define rickgdebug 1
#ifdef rickgdebug
@@ -142,7 +144,14 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
mDocumentURL = aURL;
NS_ADDREF(aURL);
rv = NS_NewParser(&mParser);
static NS_DEFINE_IID(kCParserIID, NS_IPARSER_IID);
static NS_DEFINE_IID(kCParserCID, NS_PARSER_IID);
rv = NSRepository::CreateInstance(kCParserCID,
nsnull,
kCParserIID,
(void **)&mParser);
if (NS_OK == rv) {
nsIHTMLContentSink* sink;