Backed out changeset 7f3879f42151

This commit is contained in:
Dão Gottwald
2008-08-20 10:18:18 +02:00
parent f213b80688
commit aea7de68c8
6 changed files with 21 additions and 54 deletions

View File

@@ -210,10 +210,9 @@ nsMenuPopupFrame::CreateWidgetForView(nsIView* aView)
widgetData.clipSiblings = PR_TRUE;
widgetData.mPopupHint = mPopupType;
nsTransparencyMode mode = nsLayoutUtils::GetFrameTransparency(this);
PRBool viewHasTransparentContent = !mInContentShell &&
(eTransparencyTransparent ==
mode);
nsLayoutUtils::GetFrameTransparency(this));
nsIContent* parentContent = GetContent()->GetParent();
nsIAtom *tag = nsnull;
if (parentContent)
@@ -248,7 +247,8 @@ nsMenuPopupFrame::CreateWidgetForView(nsIView* aView)
aView->CreateWidget(kCChildCID, &widgetData, nsnull, PR_TRUE, PR_TRUE,
eContentTypeInherit, parentWidget);
#endif
aView->GetWidget()->SetTransparencyMode(mode);
aView->GetWidget()->SetTransparencyMode(viewHasTransparentContent ?
eTransparencyTransparent : eTransparencyOpaque);
return NS_OK;
}