Bug 624452. Report the menu background as opaque if theming of it is not supported so it gets subpixel AA. r=roc a=blocking

This commit is contained in:
Timothy Nikkel 2011-02-10 15:15:51 -06:00
Родитель 3d0346ed62
Коммит 50b9165e80
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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);