mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
76d17c95e3
commit
aabbe24c67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user