зеркало из 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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче