From 50b9165e8024d84e9187cc1c4a302dbfa3aad645 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Thu, 10 Feb 2011 15:15:51 -0600 Subject: [PATCH] Bug 624452. Report the menu background as opaque if theming of it is not supported so it gets subpixel AA. r=roc a=blocking --- widget/src/windows/nsNativeThemeWin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widget/src/windows/nsNativeThemeWin.cpp b/widget/src/windows/nsNativeThemeWin.cpp index e5adde390c6..f5c2997e08c 100644 --- a/widget/src/windows/nsNativeThemeWin.cpp +++ b/widget/src/windows/nsNativeThemeWin.cpp @@ -2243,8 +2243,13 @@ nsNativeThemeWin::GetWidgetTransparency(nsIFrame* aFrame, PRUint8 aWidgetType) HANDLE theme = GetTheme(aWidgetType); // For the classic theme we don't really have a way of knowing - if (!theme) + if (!theme) { + // menu backgrounds which can't be themed are opaque + if (aWidgetType == NS_THEME_MENUPOPUP) { + return eOpaque; + } return eUnknownTransparency; + } PRInt32 part, state; nsresult rv = GetThemePartAndState(aFrame, aWidgetType, part, state);