mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1454908 - do an empty paint when skipping the actual paint for the blank window, to stop Windows from sending messages repeatedly, r=jimm.
This commit is contained in:
parent
ee8a623de2
commit
0bf69fee2b
@ -221,8 +221,13 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel)
|
||||
return true;
|
||||
}
|
||||
|
||||
PAINTSTRUCT ps;
|
||||
|
||||
// Avoid starting the GPU process for the initial navigator:blank window.
|
||||
if (mIsEarlyBlankWindow) {
|
||||
// Call BeginPaint/EndPaint or Windows will keep sending us messages.
|
||||
::BeginPaint(mWnd, &ps);
|
||||
::EndPaint(mWnd, &ps);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -233,8 +238,6 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel)
|
||||
}
|
||||
mLastPaintBounds = mBounds;
|
||||
|
||||
PAINTSTRUCT ps;
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
if (!aDC && (eTransparencyTransparent == mTransparencyMode))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user