fixes bustage. had to wrap some things in TARGET_CARBON.

This commit is contained in:
pinkerton%netscape.com 2005-08-20 07:12:05 +00:00
Родитель d908219dca
Коммит 0be24ac000
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -385,13 +385,15 @@ nsNativeThemeMac::DrawToolbar ( const Rect& inBoxRect )
void
nsNativeThemeMac::DrawEditText ( const Rect& inBoxRect, PRBool inIsDisabled )
{
#if TARGET_CARBON
Pattern whitePat;
::BackColor(whiteColor);
// ::BackPat(GetQDGlobalsWhite(&whitePat));
::BackPat(GetQDGlobalsWhite(&whitePat));
::EraseRect(&inBoxRect);
ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled;
::DrawThemeEditTextFrame(&inBoxRect, drawState);
#endif
}
void
@ -630,6 +632,7 @@ nsNativeThemeMac::GetWidgetBorder(nsIDeviceContext* aContext,
{
aResult->SizeTo(0,0,0,0);
#if TARGET_CARBON
// XXX we should probably cache some of these metrics
switch ( aWidgetType ) {
@ -663,6 +666,7 @@ nsNativeThemeMac::GetWidgetBorder(nsIDeviceContext* aContext,
}
}
#endif
return NS_OK;
}
@ -676,6 +680,7 @@ nsNativeThemeMac::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
aResult->SizeTo(0,0);
*aIsOverridable = PR_TRUE;
#if TARGET_CARBON
switch ( aWidgetType ) {
case NS_THEME_CHECKBOX:
@ -757,6 +762,7 @@ nsNativeThemeMac::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
}
}
#endif
return NS_OK;
}