backing out 378830 due to perf regression.

git-svn-id: svn://10.0.0.236/trunk@230205 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
2007-07-18 18:01:41 +00:00
parent 628131b532
commit fef8b1f3cd

View File

@@ -135,12 +135,10 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait)
do {
MSG msg;
// Give priority to system messages (in particular keyboard, mouse, and
// non-user messages).
// Give priority to system messages (in particular keyboard, mouse, timer,
// and paint messages).
if (PeekKeyAndIMEMessage(&msg, NULL) ||
::PeekMessageW(&msg, NULL, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE) ||
// See bug 378830.
::PeekMessageW(&msg, NULL, 0, WM_USER - 1, PM_REMOVE) ||
::PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) {
gotMessage = PR_TRUE;
if (msg.message == WM_QUIT) {