Bug 514061. Don't dispatch events while painting. r=jmathies

This commit is contained in:
Robert O'Callahan 2009-11-30 18:14:04 -05:00
parent a192286ef4
commit 1d13cf26f7

View File

@ -3113,6 +3113,12 @@ BOOL CALLBACK nsWindow::DispatchStarvedPaints(HWND aWnd, LPARAM aMsg)
// nsIWidget managed windows.
void nsWindow::DispatchPendingEvents()
{
if (mPainting) {
NS_WARNING("We were asked to dispatch pending events during painting, "
"denying since that's unsafe.");
return;
}
UpdateLastInputEventTime();
// We need to ensure that reflow events do not get starved.