From aae6798a39db0e1322af5e256933c658f1d92049 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Tue, 19 Oct 1999 23:01:23 +0000 Subject: [PATCH] Init text-transformer during module setup to save cycles (bug 7455) --- layout/build/nsLayoutModule.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/layout/build/nsLayoutModule.cpp b/layout/build/nsLayoutModule.cpp index 9dd58577a13..f9042898403 100644 --- a/layout/build/nsLayoutModule.cpp +++ b/layout/build/nsLayoutModule.cpp @@ -49,6 +49,8 @@ // XXX #include "nsIServiceManager.h" +#include "nsTextTransformer.h" + // URL for the "user agent" style sheet #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; } @@ -247,6 +254,8 @@ nsLayoutModule::Shutdown() nsMathMLAtoms::ReleaseAtoms(); #endif + nsTextTransformer::Shutdown(); + NS_IF_RELEASE(gRegistry); NS_IF_RELEASE(gUAStyleSheet); }