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

This commit is contained in:
pavlov%pavlov.net 1999-07-09 17:25:14 +00:00
Родитель eaff991cad
Коммит f946abc9f0
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -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,