diff --git a/widget/src/mac/nsNativeThemeMac.cpp b/widget/src/mac/nsNativeThemeMac.cpp index 10acc7ef974..dc826ee8b66 100644 --- a/widget/src/mac/nsNativeThemeMac.cpp +++ b/widget/src/mac/nsNativeThemeMac.cpp @@ -514,7 +514,15 @@ void nsNativeThemeMac::DrawTabPanel ( const Rect& inBoxRect, PRBool inIsDisabled ) { ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled; - ::DrawThemeTabPane(&inBoxRect, kThemeStateActive); + ::DrawThemeTabPane(&inBoxRect, drawState); +} + + +void +nsNativeThemeMac::DrawSeparator ( const Rect& inBoxRect, PRBool inIsDisabled ) +{ + ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled; + ::DrawThemeSeparator(&inBoxRect, drawState); } @@ -705,6 +713,9 @@ nsNativeThemeMac::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame* DrawButton ( kThemePushButton, macRect, IsDefaultButton(aFrame), IsDisabled(aFrame), kThemeButtonOn, kThemeAdornmentNone, eventState ); break; + case NS_THEME_TOOLBAR_SEPARATOR: + DrawSeparator ( macRect, IsDisabled(aFrame) ); + break; case NS_THEME_TOOLBAR: case NS_THEME_TOOLBOX: @@ -1093,6 +1104,7 @@ nsNativeThemeMac::ThemeSupportsWidget(nsIPresContext* aPresContext, case NS_THEME_PROGRESSBAR_VERTICAL: case NS_THEME_PROGRESSBAR_CHUNK: case NS_THEME_PROGRESSBAR_CHUNK_VERTICAL: + case NS_THEME_TOOLBAR_SEPARATOR: case NS_THEME_LISTBOX: diff --git a/widget/src/mac/nsNativeThemeMac.h b/widget/src/mac/nsNativeThemeMac.h index e642492510e..aa8cb629c1a 100644 --- a/widget/src/mac/nsNativeThemeMac.h +++ b/widget/src/mac/nsNativeThemeMac.h @@ -109,6 +109,7 @@ protected: void DrawTab ( const Rect& inBoxRect, PRBool inIsDisabled, PRBool inIsFrontmost, PRBool inIsHorizontal, PRBool inTabBottom, PRInt32 inState ) ; void DrawTabPanel ( const Rect& inBoxRect, PRBool inIsDisabled ) ; + void DrawSeparator ( const Rect& inBoxRect, PRBool inIsDisabled ) ; // void DrawScrollArrows ( const Rect& inScrollbarRect, PRBool inIsDisabled, PRInt32 inWidget, PRInt32 inState ) ; void DrawButton ( ThemeButtonKind inKind, const Rect& inBoxRect, PRBool inIsDefault,