Fixing bug 265334. Adding API for embedders etc to listen to data fed to the parser from the network. r=darin@meer.net, sr=brendan@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@164795 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-11-02 19:52:32 +00:00
parent cc6e892758
commit bbbde81598
26 changed files with 412 additions and 45 deletions

View File

@@ -116,7 +116,8 @@ Initialize(nsIModule* aSelf)
CNewlineToken::AllocNewline();
gInitialized = PR_TRUE;
}
return NS_OK;
return nsParser::Init();
}
PR_STATIC_CALLBACK(void)
@@ -126,7 +127,7 @@ Shutdown(nsIModule* aSelf)
nsHTMLTags::ReleaseTable();
nsHTMLEntities::ReleaseTable();
nsDTDContext::ReleaseGlobalObjects();
nsParser::FreeSharedObjects();
nsParser::Shutdown();
DeleteElementTable();
CNewlineToken::FreeNewline();
gInitialized = PR_FALSE;