|
@@ -0,0 +1,102 @@
|
|
|
+# HG changeset patch
|
|
|
+# User Nathan Froyd <froydnj@mozilla.com>
|
|
|
+# Date 1520276810 18000
|
|
|
+# Node ID 33b5b920262cca3e0a14159e39e64292e43eeb09
|
|
|
+# Parent 8ca561da570e085b63189861cd124eef4275c9e1
|
|
|
+Bug 1443236 - remove static init and shutdown nsRegion routines; r=kats
|
|
|
+
|
|
|
+These routines are no-ops; let's get rid of them.
|
|
|
+
|
|
|
+diff --git a/gfx/src/nsRegion.h b/gfx/src/nsRegion.h
|
|
|
+--- a/gfx/src/nsRegion.h
|
|
|
++++ b/gfx/src/nsRegion.h
|
|
|
+@@ -88,25 +88,16 @@ public:
|
|
|
+
|
|
|
+ void Swap(nsRegion* aOther)
|
|
|
+ {
|
|
|
+ pixman_region32_t tmp = mImpl;
|
|
|
+ mImpl = aOther->mImpl;
|
|
|
+ aOther->mImpl = tmp;
|
|
|
+ }
|
|
|
+
|
|
|
+- static
|
|
|
+- nsresult InitStatic()
|
|
|
+- {
|
|
|
+- return NS_OK;
|
|
|
+- }
|
|
|
+-
|
|
|
+- static
|
|
|
+- void ShutdownStatic() {}
|
|
|
+-
|
|
|
+ void AndWith(const nsRegion& aOther)
|
|
|
+ {
|
|
|
+ And(*this, aOther);
|
|
|
+ }
|
|
|
+ void AndWith(const nsRect& aOther)
|
|
|
+ {
|
|
|
+ And(*this, aOther);
|
|
|
+ }
|
|
|
+diff --git a/ipc/ipdl/test/cxx/IPDLUnitTestProcessChild.cpp b/ipc/ipdl/test/cxx/IPDLUnitTestProcessChild.cpp
|
|
|
+--- a/ipc/ipdl/test/cxx/IPDLUnitTestProcessChild.cpp
|
|
|
++++ b/ipc/ipdl/test/cxx/IPDLUnitTestProcessChild.cpp
|
|
|
+@@ -17,16 +17,13 @@ namespace _ipdltest {
|
|
|
+
|
|
|
+ bool
|
|
|
+ IPDLUnitTestProcessChild::Init(int aArgc, char* aArgv[])
|
|
|
+ {
|
|
|
+ IPDLUnitTestChildInit(IOThreadChild::channel(),
|
|
|
+ ParentPid(),
|
|
|
+ IOThreadChild::message_loop());
|
|
|
+
|
|
|
+- if (NS_FAILED(nsRegion::InitStatic()))
|
|
|
+- return false;
|
|
|
+-
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ } // namespace _ipdltest
|
|
|
+ } // namespace mozilla
|
|
|
+diff --git a/layout/build/nsLayoutStatics.cpp b/layout/build/nsLayoutStatics.cpp
|
|
|
+--- a/layout/build/nsLayoutStatics.cpp
|
|
|
++++ b/layout/build/nsLayoutStatics.cpp
|
|
|
+@@ -155,21 +155,16 @@ nsLayoutStatics::Initialize()
|
|
|
+ nsColorNames::AddRefTable();
|
|
|
+ nsGkAtoms::AddRefAtoms();
|
|
|
+ nsHTMLTags::RegisterAtoms();
|
|
|
+ nsRDFAtoms::RegisterAtoms();
|
|
|
+
|
|
|
+ NS_SealStaticAtomTable();
|
|
|
+
|
|
|
+ StartupJSEnvironment();
|
|
|
+- rv = nsRegion::InitStatic();
|
|
|
+- if (NS_FAILED(rv)) {
|
|
|
+- NS_ERROR("Could not initialize nsRegion");
|
|
|
+- return rv;
|
|
|
+- }
|
|
|
+
|
|
|
+ nsGlobalWindow::Init();
|
|
|
+ Navigator::Init();
|
|
|
+ nsXBLService::Init();
|
|
|
+
|
|
|
+ rv = nsContentUtils::Init();
|
|
|
+ if (NS_FAILED(rv)) {
|
|
|
+ NS_ERROR("Could not initialize nsContentUtils");
|
|
|
+@@ -413,18 +408,16 @@ nsLayoutStatics::Shutdown()
|
|
|
+ TouchManager::ReleaseStatics();
|
|
|
+
|
|
|
+ nsTreeSanitizer::ReleaseStatics();
|
|
|
+
|
|
|
+ nsHtml5Module::ReleaseStatics();
|
|
|
+
|
|
|
+ mozilla::dom::FallbackEncoding::Shutdown();
|
|
|
+
|
|
|
+- nsRegion::ShutdownStatic();
|
|
|
+-
|
|
|
+ mozilla::EventDispatcher::Shutdown();
|
|
|
+
|
|
|
+ HTMLInputElement::DestroyUploadLastDir();
|
|
|
+
|
|
|
+ nsLayoutUtils::Shutdown();
|
|
|
+ mozilla::SharedFontList::Shutdown();
|
|
|
+
|
|
|
+ nsHyphenationManager::Shutdown();
|