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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user