From 49aca06e3b38726fa334c20c71f88620b2a2646e Mon Sep 17 00:00:00 2001 From: "Olli.Pettay@helsinki.fi" Date: Mon, 22 Oct 2007 16:40:13 -0700 Subject: [PATCH] Bug 373462, try to fix possible tdhtml regression --- dom/src/base/nsJSEnvironment.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dom/src/base/nsJSEnvironment.cpp b/dom/src/base/nsJSEnvironment.cpp index be31d9b688b..1905e8582d7 100644 --- a/dom/src/base/nsJSEnvironment.cpp +++ b/dom/src/base/nsJSEnvironment.cpp @@ -3270,22 +3270,12 @@ nsJSContext::CC() #endif // nsCycleCollector_collect() will run a ::JS_GC() indirectly, so // we do not explicitly call ::JS_GC() here. - PRBool firstRun = nsCycleCollector_collect(); + sPreviousCCDidCollect = nsCycleCollector_collect(); #ifdef DEBUG_smaug - printf("(1) %s\n", firstRun ? + printf("(1) %s\n", sPreviousCCDidCollect ? "Cycle collector did collect nodes" : "Cycle collector did not collect nodes"); #endif - PRBool secondRun = PR_FALSE; - if (!sUserIsActive) { - secondRun = nsCycleCollector_collect(); -#ifdef DEBUG_smaug - printf("(2) %s\n", secondRun ? - "Cycle collector did collect nodes" : - "Cycle collector did not collect nodes"); -#endif - } - sPreviousCCDidCollect = firstRun || secondRun; } //static