зеркало из https://github.com/mozilla/gecko-dev.git
bug 27180, make nsIWidget::Resize() consistently invalidate on Mac, Windows and Linux. r=pavlov
This commit is contained in:
Родитель
d357a9904d
Коммит
bc2c174423
|
@ -2449,6 +2449,9 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
|||
if (nNeedToShow)
|
||||
Show(PR_TRUE);
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -1182,6 +1182,10 @@ NS_METHOD nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
|||
|
||||
NS_IF_RELEASE(par);
|
||||
}
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -1231,6 +1235,10 @@ NS_METHOD nsWindow::Resize(PRInt32 aX,
|
|||
|
||||
NS_IF_RELEASE(par);
|
||||
}
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче