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