mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 594821 - Sync update top level windows when they are first shown. r=roc, a=final.
This commit is contained in:
parent
5d80dfe3aa
commit
58e86733e6
@ -1224,6 +1224,8 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||
}
|
||||
#endif
|
||||
|
||||
PRBool syncInvalidate = PR_FALSE;
|
||||
|
||||
PRBool wasVisible = mIsVisible;
|
||||
// Set the status now so that anyone asking during ShowWindow or
|
||||
// SetWindowPos would get the correct answer.
|
||||
@ -1236,6 +1238,9 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||
if (mWnd) {
|
||||
if (bState) {
|
||||
if (!wasVisible && mWindowType == eWindowType_toplevel) {
|
||||
// speed up the initial paint after show for
|
||||
// top level windows:
|
||||
syncInvalidate = PR_TRUE;
|
||||
switch (mSizeMode) {
|
||||
#ifdef WINCE
|
||||
case nsSizeMode_Fullscreen:
|
||||
@ -1320,7 +1325,7 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
if (!wasVisible && bState)
|
||||
Invalidate(PR_FALSE);
|
||||
Invalidate(syncInvalidate);
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user