diff --git a/content/base/src/nsContentSink.cpp b/content/base/src/nsContentSink.cpp --- a/content/base/src/nsContentSink.cpp +++ b/content/base/src/nsContentSink.cpp @@ -1534,6 +1534,7 @@ return NS_OK; } +#if 0 nsIViewManager* vm = shell->GetViewManager(); NS_ENSURE_TRUE(vm, NS_ERROR_FAILURE); PRUint32 eventTime; @@ -1612,6 +1613,19 @@ FavorPerformanceHint(PR_TRUE, 0); } } + +#else + + + if (mDeflectedCount < mMaxTokensDeflectedInLowFreqMode) { + mDeflectedCount++; + return NS_OK; + } + + mDeflectedCount = 0; + + PRUint32 currentTime = PR_IntervalToMicroseconds(PR_IntervalNow()); +#endif if ((currentTime - mDelayTimerStart) > static_cast(GetMaxTokenProcessingTime())) { diff --git a/content/base/src/nsContentSink.h b/content/base/src/nsContentSink.h --- a/content/base/src/nsContentSink.h +++ b/content/base/src/nsContentSink.h @@ -263,18 +263,21 @@ inline PRInt32 GetNotificationInterval() { +#if 0 if (mDynamicLowerValue) { return 1000; } - +#endif return mNotificationInterval; } inline PRInt32 GetMaxTokenProcessingTime() { +#if 0 if (mDynamicLowerValue) { return 3000; } +#endif return mMaxTokenProcessingTime; } diff --git a/widget/src/xpwidgets/nsBaseAppShell.cpp b/widget/src/xpwidgets/nsBaseAppShell.cpp --- a/widget/src/xpwidgets/nsBaseAppShell.cpp +++ b/widget/src/xpwidgets/nsBaseAppShell.cpp @@ -185,12 +185,14 @@ PRUint32 starvationDelay) { mStarvationDelay = PR_MillisecondsToInterval(starvationDelay); +#if 0 if (favorPerfOverStarvation) { ++mFavorPerf; } else { --mFavorPerf; mSwitchTime = PR_IntervalNow(); } +#endif return NS_OK; }