зеркало из https://github.com/mozilla/pjs.git
Bug 378830 - UI operation delay when page contains flash images with high refresh rate
p=Wang Xianzhu <phnixwxz1@yahoo.com> r=emaijala, sr=roc
This commit is contained in:
Родитель
5e53695a66
Коммит
c3ee6c95c4
|
@ -135,10 +135,12 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait)
|
|||
|
||||
do {
|
||||
MSG msg;
|
||||
// Give priority to system messages (in particular keyboard, mouse, timer,
|
||||
// and paint messages).
|
||||
// Give priority to system messages (in particular keyboard, mouse, and
|
||||
// non-user 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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче