Bug 605023 - Prevent nsChromeRegistry::ReloadChrome() from hiding top level widgets on windows. r=bz, a=betaN

This commit is contained in:
Jim Mathies 2010-10-21 16:59:26 -05:00
Родитель 70cc2cf4f8
Коммит e25d0d82f9
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2011,7 +2011,7 @@ DocumentViewerImpl::Show(void)
NS_IMETHODIMP
DocumentViewerImpl::Hide(void)
{
if (mWindow) {
if (!mAttachedToParent && mWindow) {
mWindow->Show(PR_FALSE);
}
@ -2054,7 +2054,7 @@ DocumentViewerImpl::Hide(void)
nsCOMPtr<nsIBaseWindow> base_win(do_QueryReferent(mContainer));
if (base_win) {
if (base_win && !mAttachedToParent) {
base_win->SetParentWidget(nsnull);
}