corrected chrome behaviour in window.open. removed warnings in nsWebShellWindow.

git-svn-id: svn://10.0.0.236/trunk@42622 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
1999-08-07 02:51:03 +00:00
parent c06c155ecd
commit 01582c69aa
14 changed files with 239 additions and 91 deletions

View File

@@ -559,14 +559,16 @@ nsAppShellService::JustCreateTopWindow(nsIWebShellWindow *aParent,
if (!window)
rv = NS_ERROR_OUT_OF_MEMORY;
else {
// temporarily disabling parentage because non-Windows platforms
// seem to be interpreting it in unexpected ways.
nsWidgetInitData widgetInitData;
widgetInitData.mWindowType = aChromeMask & NS_CHROME_OPEN_AS_DIALOG ?
eWindowType_dialog : eWindowType_toplevel;
if ((aChromeMask & NS_CHROME_ALL_CHROME) == NS_CHROME_ALL_CHROME)
// note default chrome overrides other OS chrome settings, but
// not internal chrome
if (aChromeMask & NS_CHROME_DEFAULT_CHROME)
widgetInitData.mBorderStyle = eBorderStyle_default;
else if ((aChromeMask & NS_CHROME_ALL_CHROME) == NS_CHROME_ALL_CHROME)
widgetInitData.mBorderStyle = eBorderStyle_all;
else {
widgetInitData.mBorderStyle = eBorderStyle_none; // assumes none == 0x00