зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
07f5a40f28
Коммит
df04319d82
|
@ -2450,6 +2450,14 @@ NS_IMETHODIMP nsViewManager::SetViewZIndex(nsIView *aView, PRInt32 aZIndex)
|
||||||
UpdateTransCnt(aView, nsnull);
|
UpdateTransCnt(aView, nsnull);
|
||||||
rv = InsertChild(parent, aView, aZIndex);
|
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;
|
nsIView* zParentView = nsnull;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче