Bug 360211 - text fields are transparent in cocoa-cairo builds. r=josh, sr=pavlov.

This commit is contained in:
mozilla.mano%sent.com 2006-12-13 21:13:42 +00:00
Родитель e7a4d60ed8
Коммит e04e492664
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -522,6 +522,9 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
break;
case NS_THEME_TEXTFIELD:
// HIThemeSetFill is not available on 10.3
CGContextSetRGBFillColor (cgContext, 1, 1, 1, 1);
CGContextFillRect (cgContext, macRect);
DrawFrame (cgContext, kHIThemeFrameTextFieldSquare,
macRect, (IsDisabled(aFrame) || IsReadOnly(aFrame)), eventState);
break;
@ -610,6 +613,9 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
break;
case NS_THEME_LISTBOX:
// HIThemeSetFill is not available on 10.3
CGContextSetRGBFillColor (cgContext, 1, 1, 1, 1);
CGContextFillRect (cgContext, macRect);
DrawFrame(cgContext, kHIThemeFrameListBox,
macRect, (IsDisabled(aFrame) || IsReadOnly(aFrame)), eventState);
break;