Init text-transformer during module setup to save cycles (bug 7455)

This commit is contained in:
kipp%netscape.com 1999-10-19 23:01:23 +00:00
Родитель 77e05ac57e
Коммит aae6798a39
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,8 @@
// XXX // XXX
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsTextTransformer.h"
// URL for the "user agent" style sheet // URL for the "user agent" style sheet
#define UA_CSS_URL "resource:/res/ua.css" #define UA_CSS_URL "resource:/res/ua.css"
@ -224,6 +226,11 @@ nsLayoutModule::Initialize()
} }
} }
rv = nsTextTransformer::Initialize();
if (NS_FAILED(rv)) {
return rv;
}
return rv; return rv;
} }
@ -247,6 +254,8 @@ nsLayoutModule::Shutdown()
nsMathMLAtoms::ReleaseAtoms(); nsMathMLAtoms::ReleaseAtoms();
#endif #endif
nsTextTransformer::Shutdown();
NS_IF_RELEASE(gRegistry); NS_IF_RELEASE(gRegistry);
NS_IF_RELEASE(gUAStyleSheet); NS_IF_RELEASE(gUAStyleSheet);
} }