turning intrinsic sizing on for unix part 2 r=saari a=chofmann

git-svn-id: svn://10.0.0.236/trunk@38908 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
1999-07-09 17:25:14 +00:00
parent fb5241b548
commit 7106acfb08

View File

@@ -496,7 +496,6 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent,
nsWidgetInitData widgetInitData;
widgetInitData.mBorderStyle = eBorderStyle_window;
#ifndef XP_UNIX
if (aInitialWidth == NS_SIZETOCONTENT ||
aInitialHeight == NS_SIZETOCONTENT) {
aInitialWidth = 1;
@@ -504,7 +503,6 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent,
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
window->SetIntrinsicallySized(PR_TRUE);
}
#endif
rv = window->Initialize((nsIWebShellWindow *) nsnull, mAppShell, aUrl,
anObserver, aCallbacks,
@@ -558,7 +556,6 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent,
nsWidgetInitData widgetInitData;
widgetInitData.mBorderStyle = eBorderStyle_dialog;
#ifndef XP_UNIX
if (aInitialWidth == NS_SIZETOCONTENT ||
aInitialHeight == NS_SIZETOCONTENT) {
aInitialWidth = 1;
@@ -566,7 +563,6 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent,
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
window->SetIntrinsicallySized(PR_TRUE);
}
#endif
rv = window->Initialize((nsIWebShellWindow *) nsnull, mAppShell, aUrl,
anObserver, aCallbacks,