зеркало из https://github.com/mozilla/pjs.git
Bug 360211 - text fields are transparent in cocoa-cairo builds. r=josh, sr=pavlov.
This commit is contained in:
Родитель
e7a4d60ed8
Коммит
e04e492664
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче