actually use the 'visible' parameter in NewWebShell. makes new windows from links not be invisible.

This commit is contained in:
danm%netscape.com 1999-12-06 01:44:21 +00:00
Родитель 302bf8eb7e
Коммит 5692529042
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1493,7 +1493,7 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible,
// return it immediately.
nsIWebShellWindow *parent = aChromeMask & NS_CHROME_DEPENDENT ? this : nsnull;
rv = appShell->CreateTopLevelWindow(parent, nsnull, PR_FALSE, PR_FALSE,
rv = appShell->CreateTopLevelWindow(parent, nsnull, aVisible, PR_FALSE,
aChromeMask, nsnull,
NS_SIZETOCONTENT, NS_SIZETOCONTENT,
getter_AddRefs(newWindow));
@ -1530,7 +1530,7 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible,
NS_RELEASE(uri);
if (NS_SUCCEEDED(rv)) {
rv = appShell->CreateTopLevelWindow(nsnull, urlObj, PR_FALSE, PR_FALSE,
rv = appShell->CreateTopLevelWindow(nsnull, urlObj, aVisible, PR_FALSE,
aChromeMask, nsnull, 615, 480,
getter_AddRefs(newWindow));
}