Bug 982640 - Port GTK2 to GTK3 - transparent widgets, r=karlt

Some widgets in Gtk3 are transparent so force gecko
to paint underlying widget which is usually GtkWindow.
This commit is contained in:
Martin Stransky 2014-03-26 10:16:38 -07:00
parent 6f1a295d68
commit 6f60fb4cf1

View File

@ -1468,10 +1468,10 @@ nsNativeThemeGTK::GetWidgetTransparency(nsIFrame* aFrame, uint8_t aWidgetType)
{
switch (aWidgetType) {
// These widgets always draw a default background.
#if (MOZ_WIDGET_GTK == 2)
case NS_THEME_SCROLLBAR_TRACK_VERTICAL:
case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL:
case NS_THEME_TOOLBAR:
#if (MOZ_WIDGET_GTK == 2)
case NS_THEME_MENUBAR:
#endif
case NS_THEME_MENUPOPUP: