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:
robin.lu%sun.com 2004-06-07 01:13:29 +00:00
Родитель 420da0d96d
Коммит 8173023fec
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;
}