Bug 674805 - Move WorkerPrivateParent instantiation inside namespace; r=bent
authorJim Chen <jimnchen@gmail.com>
Thu, 04 Aug 2011 15:01:45 -0700
changeset 73874 6827ee54c23f59d7108c720c320e438a7f85d943
parent 73873 b9e9b5a4959a64ec2c15dff4e5464a9558fcc6ef
child 73875 770498ac2b3ebedc312fa0ca4a1be80ba8135ec1
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersbent
bugs674805
milestone8.0a1
Bug 674805 - Move WorkerPrivateParent instantiation inside namespace; r=bent
dom/workers/WorkerPrivate.cpp
--- a/dom/workers/WorkerPrivate.cpp
+++ b/dom/workers/WorkerPrivate.cpp
@@ -3114,21 +3114,21 @@ WorkerPrivate::AssertIsOnWorkerThread() 
   }
   else {
     NS_ERROR("Trying to assert thread identity after thread has been "
              "shutdown!");
   }
 }
 #endif
 
+BEGIN_WORKERS_NAMESPACE
+
 // Force instantiation.
 template class WorkerPrivateParent<WorkerPrivate>;
 
-BEGIN_WORKERS_NAMESPACE
-
 WorkerPrivate*
 GetWorkerPrivateFromContext(JSContext* aCx)
 {
   NS_ASSERTION(!NS_IsMainThread(), "Wrong thread!");
   return static_cast<WorkerPrivate*>(JS_GetContextPrivate(aCx));
 }
 
 JSStructuredCloneCallbacks*