Fixing bug 98828. Cache a few nsSpaceManager objects to avoid spending 43%cvs ci -m ! of the time spent in PresShell::ProcessReflowCommand() in new and delete. r=dbaron@fas.harvard.edu, sr=waterson@netscape.com

git-svn-id: svn://10.0.0.236/trunk@102715 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2001-09-11 00:55:05 +00:00
parent d6ab1d171f
commit 2ec1ee65c2
13 changed files with 200 additions and 20 deletions

View File

@@ -44,6 +44,7 @@
#include "nsCSSAtoms.h" // to addref/release table
#include "nsColorNames.h" // to addref/release table
#include "nsCSSFrameConstructor.h"
#include "nsSpaceManager.h"
#ifdef INCLUDE_XUL
#include "nsXULAtoms.h"
@@ -146,6 +147,8 @@ Shutdown(nsIModule* self)
nsCSSFrameConstructor::ReleaseGlobals();
nsTextTransformer::Shutdown();
nsSpaceManager::Shutdown();
}
#ifdef NS_DEBUG