зеркало из https://github.com/mozilla/gecko-dev.git
Make -moz-appearance count as opaque (also hides cairo bug) b=351716 r+sr=roc
This commit is contained in:
Родитель
648dd9ddb4
Коммит
d54bafff3f
|
@ -220,7 +220,9 @@ nsMenuPopupFrame::CreateWidgetForView(nsIView* aView)
|
||||||
const nsStyleBackground* bg;
|
const nsStyleBackground* bg;
|
||||||
PRBool hasBG =
|
PRBool hasBG =
|
||||||
nsCSSRendering::FindBackground(GetPresContext(), this, &bg, &isCanvas);
|
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();
|
nsIContent* parentContent = GetContent()->GetParent();
|
||||||
nsIAtom *tag = nsnull;
|
nsIAtom *tag = nsnull;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче