Bug 367571 - all themes supporting 'scrollbar' should support 'scrollbar-small'. r=neil sr=roc

This commit is contained in:
cbarrett@mozilla.com 2007-07-13 14:46:28 -07:00
Родитель d49402d886
Коммит 523d1b8e1e
2 изменённых файлов: 4 добавлений и 1 удалений

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

@ -960,6 +960,7 @@ nsNativeThemeGTK::ThemeSupportsWidget(nsPresContext* aPresContext,
case NS_THEME_SPINNER_UP_BUTTON:
case NS_THEME_SPINNER_DOWN_BUTTON:
// case NS_THEME_SCROLLBAR: (n/a for gtk)
// case NS_THEME_SCROLLBAR_SMALL: (n/a for gtk)
case NS_THEME_SCROLLBAR_BUTTON_UP:
case NS_THEME_SCROLLBAR_BUTTON_DOWN:
case NS_THEME_SCROLLBAR_BUTTON_LEFT:

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

@ -322,6 +322,7 @@ nsNativeThemeWin::GetTheme(PRUint8 aWidgetType)
return mTabTheme;
}
case NS_THEME_SCROLLBAR:
case NS_THEME_SCROLLBAR_SMALL:
case NS_THEME_SCROLLBAR_TRACK_VERTICAL:
case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL:
case NS_THEME_SCROLLBAR_BUTTON_UP:
@ -683,7 +684,8 @@ nsNativeThemeWin::GetThemePartAndState(nsIFrame* aFrame, PRUint8 aWidgetType,
}
case NS_THEME_TOOLBOX:
case NS_THEME_STATUSBAR:
case NS_THEME_SCROLLBAR: {
case NS_THEME_SCROLLBAR:
case NS_THEME_SCROLLBAR_SMALL: {
aPart = aState = 0;
return NS_OK; // These have no part or state.
}