make window.open windows visible

git-svn-id: svn://10.0.0.236/trunk@40421 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com 1999-07-21 06:37:58 +00:00
parent 359e372750
commit c440919d70
4 changed files with 7 additions and 1 deletions

View File

@ -2196,7 +2196,9 @@ GlobalWindowImpl::SizeAndShowOpenedWebShell(nsIWebShell *aOuterShell, char *aFea
openedWindow->MoveTo(defaultBounds.x + contentOffsets.x,
defaultBounds.y + contentOffsets.y);
if (!sizeLater)
if (sizeLater)
openedWindow->ShowAfterCreation();
else
openedWindow->Show();
}

View File

@ -75,6 +75,8 @@ public:
NS_IMETHOD IsIntrinsicallySized(PRBool& aResult) = 0;
NS_IMETHOD ShowAfterCreation() = 0;
NS_IMETHOD Show() = 0;
NS_IMETHOD Hide() = 0;

View File

@ -92,6 +92,7 @@ public:
NS_IMETHOD GetContentBounds(nsRect& aBounds);
NS_IMETHOD GetWindowBounds(nsRect& aBounds);
NS_IMETHOD IsIntrinsicallySized(PRBool& aResult);
NS_IMETHOD ShowAfterCreation() { return Show(); }
NS_IMETHOD Show();
NS_IMETHOD Hide();
NS_IMETHOD Close();

View File

@ -233,6 +233,7 @@ public:
NS_IMETHOD GetContentBounds(nsRect& aResult);
NS_IMETHOD GetWindowBounds(nsRect& aResult);
NS_IMETHOD IsIntrinsicallySized(PRBool& aResult);
NS_IMETHOD ShowAfterCreation() { mCreatedVisible = PR_TRUE; return NS_OK; }
NS_IMETHOD Show() { Show(PR_TRUE); return NS_OK; }
NS_IMETHOD Hide() { Show(PR_FALSE); return NS_OK; }
NS_IMETHOD SetChrome(PRUint32 aNewChromeMask);