mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
b=328337, black flash often when repainting areas, r=roc
This commit is contained in:
parent
2de84e29a4
commit
3e83e21d9d
@ -1415,6 +1415,11 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
|
||||
// Paint later.
|
||||
vm->UpdateView(vm->mRootView, NS_VMREFRESH_NO_SYNC);
|
||||
didResize = PR_TRUE;
|
||||
|
||||
// not sure if it's valid for us to claim that we
|
||||
// ignored this, but we're going to do so anyway, since
|
||||
// we didn't actually paint anything
|
||||
*aStatus = nsEventStatus_eIgnore;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4174,7 +4174,12 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
||||
break;
|
||||
|
||||
case WM_PAINT:
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
*aRetValue = (int) OnPaint();
|
||||
result = PR_TRUE;
|
||||
#else
|
||||
result = OnPaint();
|
||||
#endif
|
||||
break;
|
||||
|
||||
#ifndef WINCE
|
||||
|
Loading…
Reference in New Issue
Block a user