| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 87b053e030ae3096e57f8a646563e4a9eaae25e8..3cef41a6d2409317ed1ec45cd328433d413e6c5f 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -1648,7 +1648,11 @@ void Textfield::AccessibilitySetValue(const base::string16& new_value) {
|
| void Textfield::UpdateBackgroundColor() {
|
| const SkColor color = GetBackgroundColor();
|
| set_background(Background::CreateSolidBackground(color));
|
| - GetRenderText()->set_background_is_transparent(SkColorGetA(color) != 0xFF);
|
| + // Disable subpixel rendering when the background color is transparent
|
| + // because it draws incorrect colors around the glyphs in that case.
|
| + // See crbug.com/115198
|
| + GetRenderText()->set_subpixel_rendering_suppressed(
|
| + SkColorGetA(color) != 0xFF);
|
| SchedulePaint();
|
| }
|
|
|
|
|