Make -moz-appearance count as opaque (also hides cairo bug) b=351716 r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@209672 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2006-09-10 23:15:20 +00:00
parent 260ffce081
commit 8e13f3c09b

View File

@@ -220,7 +220,9 @@ nsMenuPopupFrame::CreateWidgetForView(nsIView* aView)
const nsStyleBackground* bg;
PRBool hasBG =
nsCSSRendering::FindBackground(GetPresContext(), this, &bg, &isCanvas);
PRBool viewHasTransparentContent = hasBG && (bg->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT);
PRBool viewHasTransparentContent = hasBG &&
(bg->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT) &&
!GetStyleDisplay()->mAppearance;
nsIContent* parentContent = GetContent()->GetParent();
nsIAtom *tag = nsnull;