зеркало из https://github.com/mozilla/gecko-dev.git
fix bug 241187 combo box shows up unexpectly due to nsWindow::IsVisible() does
not return the right value. patched by robin.lu@sun.com r=blizzard sr=bryner
This commit is contained in:
Родитель
420da0d96d
Коммит
8173023fec
|
@ -427,6 +427,11 @@ NS_IMETHODIMP
|
|||
nsWindow::IsVisible(PRBool & aState)
|
||||
{
|
||||
aState = mIsVisible;
|
||||
if (mIsTopLevel && mShell && !GTK_WIDGET_MAPPED(mShell)) {
|
||||
/* we do not change mIsVisible to PR_FALSE here so we don't bother
|
||||
to change it back to PR_TRUE when the mShell is mapped again. */
|
||||
aState = PR_FALSE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче