mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 514061. Don't dispatch events while painting. r=jmathies
This commit is contained in:
parent
a192286ef4
commit
1d13cf26f7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user