Fixing bug 109400. Removing unnecessary layers of abstraction from nsHTMLTags that does nothing for us except using more memory than we need to use, and makes us slower. This makes nsHTMLTags::LookupTag() 4 times faster. r=harishd@netscape.com, rs=vidur@netscape.com

This commit is contained in:
jst@netscape.com
2001-11-28 06:13:11 +00:00
parent 551b74e49d
commit bc89fe4176
52 changed files with 2075 additions and 995 deletions

View File

@@ -97,7 +97,9 @@ PR_STATIC_CALLBACK(nsresult)
Initialize(nsIModule* aSelf)
{
if (!gInitialized) {
nsHTMLTags::AddRefTable();
nsresult rv = nsHTMLTags::AddRefTable();
NS_ENSURE_SUCCESS(rv, rv);
nsHTMLEntities::AddRefTable();
InitializeElementTable();
CNewlineToken::AllocNewline();