Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi
git-svn-id: svn://10.0.0.236/trunk@109458 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -725,7 +725,9 @@ nsObjectFrame::CreateWidget(nsIPresContext* aPresContext,
|
||||
viewMan->AllowDoubleBuffering(doubleBuffer);
|
||||
#endif
|
||||
|
||||
viewMan->InsertChild(parView, view, 0);
|
||||
// XXX Put this last in document order
|
||||
// XXX Should we be setting the z-index here?
|
||||
viewMan->InsertChild(parView, view, nsnull, PR_TRUE);
|
||||
|
||||
if(aViewOnly != PR_TRUE) {
|
||||
|
||||
@@ -764,9 +766,11 @@ nsObjectFrame::CreateWidget(nsIPresContext* aPresContext,
|
||||
|
||||
nsIView* parentWithView;
|
||||
nsPoint origin;
|
||||
view->SetVisibility(nsViewVisibility_kShow);
|
||||
nsRect r(0, 0, mRect.width, mRect.height);
|
||||
|
||||
viewMan->SetViewVisibility(view, nsViewVisibility_kShow);
|
||||
GetOffsetFromView(aPresContext, origin, &parentWithView);
|
||||
viewMan->ResizeView(view, mRect.width, mRect.height);
|
||||
viewMan->ResizeView(view, r);
|
||||
viewMan->MoveViewTo(view, origin.x, origin.y);
|
||||
}
|
||||
|
||||
@@ -1471,7 +1475,11 @@ nsObjectFrame::DidReflow(nsIPresContext* aPresContext,
|
||||
nsIView* view = nsnull;
|
||||
GetView(aPresContext, &view);
|
||||
if (nsnull != view) {
|
||||
view->SetVisibility(nsViewVisibility_kShow);
|
||||
nsCOMPtr<nsIViewManager> vm;
|
||||
view->GetViewManager(*getter_AddRefs(vm));
|
||||
if (vm) {
|
||||
vm->SetViewVisibility(view, nsViewVisibility_kShow);
|
||||
}
|
||||
}
|
||||
|
||||
if (nsnull != mInstanceOwner) {
|
||||
@@ -3575,7 +3583,12 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void)
|
||||
view->GetWidget(mWidget);
|
||||
PRBool fTransparent;
|
||||
mInstance->GetValue(nsPluginInstanceVariable_TransparentBool, (void *)&fTransparent);
|
||||
view->SetContentTransparency(fTransparent);
|
||||
|
||||
nsCOMPtr<nsIViewManager> vm;
|
||||
view->GetViewManager(*getter_AddRefs(vm));
|
||||
if (vm) {
|
||||
vm->SetViewContentTransparency(view, fTransparent);
|
||||
}
|
||||
}
|
||||
|
||||
if (PR_TRUE == windowless)
|
||||
|
||||
Reference in New Issue
Block a user