mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973950 - Remove sContextList from nsJSEnvironment; r=bholley
This commit is contained in:
parent
7a2ecd8d4e
commit
125d1cbbd1
@ -191,7 +191,6 @@ static uint32_t sPreviousSuspectedCount = 0;
|
||||
static uint32_t sCleanupsSinceLastGC = UINT32_MAX;
|
||||
static bool sNeedsFullCC = false;
|
||||
static bool sNeedsGCAfterCC = false;
|
||||
static nsJSContext *sContextList = nullptr;
|
||||
static bool sIncrementalCC = false;
|
||||
|
||||
static nsScriptNameSpaceManager *gNameSpaceManager;
|
||||
@ -767,13 +766,6 @@ nsJSContext::nsJSContext(bool aGCOnDestruction,
|
||||
{
|
||||
EnsureStatics();
|
||||
|
||||
mNext = sContextList;
|
||||
mPrev = &sContextList;
|
||||
if (sContextList) {
|
||||
sContextList->mPrev = &mNext;
|
||||
}
|
||||
sContextList = this;
|
||||
|
||||
++sContextCount;
|
||||
|
||||
mContext = ::JS_NewContext(sRuntime, gStackSize);
|
||||
@ -795,11 +787,6 @@ nsJSContext::nsJSContext(bool aGCOnDestruction,
|
||||
|
||||
nsJSContext::~nsJSContext()
|
||||
{
|
||||
*mPrev = mNext;
|
||||
if (mNext) {
|
||||
mNext->mPrev = mPrev;
|
||||
}
|
||||
|
||||
mGlobalObjectRef = nullptr;
|
||||
|
||||
DestroyJSContext();
|
||||
|
@ -160,9 +160,6 @@ private:
|
||||
PRTime mModalStateTime;
|
||||
uint32_t mModalStateDepth;
|
||||
|
||||
nsJSContext *mNext;
|
||||
nsJSContext **mPrev;
|
||||
|
||||
// mGlobalObjectRef ensures that the outer window stays alive as long as the
|
||||
// context does. It is eventually collected by the cycle collector.
|
||||
nsCOMPtr<nsIScriptGlobalObject> mGlobalObjectRef;
|
||||
|
Loading…
Reference in New Issue
Block a user