Bug 43410: Correct z-index ordering of iframes. This change redundantly sets the widget's z-index, and should be cleaned up later. Fix includes work by beard@netscape.com. r=beard@netscape.com,self sr=jst@netscape.com

This commit is contained in:
pollmann%netscape.com 2001-07-18 08:46:04 +00:00
Родитель 07f5a40f28
Коммит df04319d82
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -2450,6 +2450,14 @@ NS_IMETHODIMP nsViewManager::SetViewZIndex(nsIView *aView, PRInt32 aZIndex)
UpdateTransCnt(aView, nsnull);
rv = InsertChild(parent, aView, aZIndex);
}
// XXX The following else block is a workaround and should be cleaned up (bug 43410)
} else {
nsCOMPtr<nsIWidget> widget;
aView->GetWidget(*getter_AddRefs(widget));
if (widget) {
widget->SetZIndex(aZIndex);
}
}
nsIView* zParentView = nsnull;