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:
parent
359e372750
commit
c440919d70
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -75,6 +75,8 @@ public:
|
||||
|
||||
NS_IMETHOD IsIntrinsicallySized(PRBool& aResult) = 0;
|
||||
|
||||
NS_IMETHOD ShowAfterCreation() = 0;
|
||||
|
||||
NS_IMETHOD Show() = 0;
|
||||
|
||||
NS_IMETHOD Hide() = 0;
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user