Bug 43410: Correct z-index ordering of iframes. Passing in initdata that tells the widget it needs to clip sibling and child widgets prevents overlapping iframes from painting on top of one another. Fix includes work by beard@netscape.com. r=beard@netscape.com,self sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@99479 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9e376203cf
commit
62df2475e2
@ -1053,7 +1053,12 @@ nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext* aPresContext,
|
||||
presShell->GetViewManager(getter_AddRefs(viewMan));
|
||||
rv = view->Init(viewMan, viewBounds, parView);
|
||||
viewMan->InsertChild(parView, view, 0);
|
||||
rv = view->CreateWidget(kCChildCID);
|
||||
|
||||
nsWidgetInitData initData;
|
||||
initData.clipChildren = PR_TRUE;
|
||||
initData.clipSiblings = PR_TRUE;
|
||||
|
||||
rv = view->CreateWidget(kCChildCID, &initData);
|
||||
SetView(aPresContext, view);
|
||||
|
||||
// if the visibility is hidden, reflect that in the view
|
||||
|
||||
@ -1053,7 +1053,12 @@ nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext* aPresContext,
|
||||
presShell->GetViewManager(getter_AddRefs(viewMan));
|
||||
rv = view->Init(viewMan, viewBounds, parView);
|
||||
viewMan->InsertChild(parView, view, 0);
|
||||
rv = view->CreateWidget(kCChildCID);
|
||||
|
||||
nsWidgetInitData initData;
|
||||
initData.clipChildren = PR_TRUE;
|
||||
initData.clipSiblings = PR_TRUE;
|
||||
|
||||
rv = view->CreateWidget(kCChildCID, &initData);
|
||||
SetView(aPresContext, view);
|
||||
|
||||
// if the visibility is hidden, reflect that in the view
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user