Backout 273cb783edac (bug 627628) for causing bug 635465. a=backout

This commit is contained in:
Timothy Nikkel 2011-02-22 13:44:30 -06:00
parent 02799949ae
commit 5ea3526979
3 changed files with 3 additions and 14 deletions

View File

@ -3945,12 +3945,9 @@ void nsWindow::DispatchPendingEvents()
--recursionBlocker;
}
// Quickly check to see if there are any paint events pending,
// but only dispatch them if it has been long enough since the
// last paint completed.
if (::GetQueueStatus(QS_PAINT) &&
(mLastPaintEndTime.IsNull() ||
(TimeStamp::Now() - mLastPaintEndTime).ToMilliseconds() >= 50)) {
// Quickly check to see if there are any
// paint events pending.
if (::GetQueueStatus(QS_PAINT)) {
// Find the top level window.
HWND topWnd = GetTopLevelHWND(mWnd);

View File

@ -61,8 +61,6 @@
#include "nsWindowDbg.h"
#include "cairo.h"
#include "nsITimer.h"
#include "mozilla/TimeStamp.h"
#ifdef CAIRO_HAS_D2D_SURFACE
#include "gfxD2DSurface.h"
#endif
@ -101,7 +99,6 @@ class imgIContainer;
class nsWindow : public nsBaseWidget
{
typedef mozilla::TimeStamp TimeStamp;
typedef mozilla::widget::WindowHook WindowHook;
#if MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_WIN7
typedef mozilla::widget::TaskbarWindowPreview TaskbarWindowPreview;
@ -626,10 +623,6 @@ protected:
PRBool mHasTaskbarIconBeenCreated;
#endif
// The point in time at which the last paint completed. We use this to avoid
// painting too rapidly in response to frequent input events.
TimeStamp mLastPaintEndTime;
#if defined(WINCE_HAVE_SOFTKB)
static PRBool sSoftKeyboardState;
#endif // defined(WINCE_HAVE_SOFTKB)

View File

@ -642,7 +642,6 @@ PRBool nsWindow::OnPaint(HDC aDC, PRUint32 aNestingLevel)
}
mPaintDC = nsnull;
mLastPaintEndTime = TimeStamp::Now();
#if defined(WIDGET_DEBUG_OUTPUT) && !defined(WINCE)
if (debug_WantPaintFlashing())