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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user