Bug 1276669 - Part 2: Move nsTextServicesDocument::RegisterAtoms call. r=bz, a=ritu
authorNathan Froyd <froydnj@mozilla.com>
Thu, 26 Jan 2017 15:43:39 -0500
changeset 375819 9feaa1d4b820f808154e306588b0cdfe6622c952
parent 375818 77ab0b39793686c3ce68e5e881973f9bdbd59fc3
child 375820 c922a29ad1460b52ee197a8a285006aba1076996
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, ritu
bugs1276669
milestone53.0a2
Bug 1276669 - Part 2: Move nsTextServicesDocument::RegisterAtoms call. r=bz, a=ritu Moving this call closer to the other atom initializations will enable us to seal the static atom table sooner.
layout/build/nsLayoutStatics.cpp
--- a/layout/build/nsLayoutStatics.cpp
+++ b/layout/build/nsLayoutStatics.cpp
@@ -156,16 +156,17 @@ nsLayoutStatics::Initialize()
   nsCSSAnonBoxes::AddRefAtoms();
   nsCSSPseudoClasses::AddRefAtoms();
   nsCSSPseudoElements::AddRefAtoms();
   nsCSSKeywords::AddRefTable();
   nsCSSProps::AddRefTable();
   nsColorNames::AddRefTable();
   nsGkAtoms::AddRefAtoms();
   nsHtml5Atoms::AddRefAtoms();
+  nsTextServicesDocument::RegisterAtoms();
 
   StartupJSEnvironment();
   rv = nsRegion::InitStatic();
   if (NS_FAILED(rv)) {
     NS_ERROR("Could not initialize nsRegion");
     return rv;
   }
 
@@ -208,18 +209,16 @@ nsLayoutStatics::Initialize()
     NS_ERROR("Could not initialize nsXULContentUtils");
     return rv;
   }
 
 #endif
 
   nsMathMLOperators::AddRefTable();
 
-  nsTextServicesDocument::RegisterAtoms();
-
 #ifdef DEBUG
   nsFrame::DisplayReflowStartup();
 #endif
   Attr::Initialize();
 
   rv = txMozillaXSLTProcessor::Startup();
   if (NS_FAILED(rv)) {
     NS_ERROR("Could not initialize txMozillaXSLTProcessor");