зеркало из https://github.com/mozilla/pjs.git
Init text-transformer during module setup to save cycles (bug 7455)
This commit is contained in:
Родитель
77e05ac57e
Коммит
aae6798a39
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче