Change so browser window doesn't assume it has toolbars.

This commit is contained in:
joki%netscape.com 1998-08-12 21:41:05 +00:00
Родитель 0c8f4203ed
Коммит 00d6476959
1 изменённых файлов: 18 добавлений и 12 удалений

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

@ -142,25 +142,31 @@ nsBrowserWindow::FindBrowserFor(nsIWidget* aWidget, PRIntn aWhich)
NS_IF_RELEASE(widget);
break;
case FIND_BACK:
bw->mBack->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
if (bw->mBack) {
bw->mBack->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
}
NS_IF_RELEASE(widget);
}
NS_IF_RELEASE(widget);
break;
case FIND_FORWARD:
bw->mForward->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
if (bw->mForward) {
bw->mForward->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
}
NS_IF_RELEASE(widget);
}
NS_IF_RELEASE(widget);
break;
case FIND_LOCATION:
bw->mLocation->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
if (bw->mLocation) {
bw->mLocation->QueryInterface(kIWidgetIID, (void**) &widget);
if (widget == aWidget) {
result = bw;
}
NS_IF_RELEASE(widget);
}
NS_IF_RELEASE(widget);
break;
}
}