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..b8cca0c1262e5327a5f5a90a4df7e9bdba8792f1 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -1648,7 +1648,8 @@ 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. |
sky
2015/02/19 17:51:03
This comment documents what the code does. Useful
Jun Mukai
2015/02/19 18:54:33
Done, also put the link to the reported bug.
|
+ GetRenderText()->set_subpixel_rendering_enabled(SkColorGetA(color) == 0xFF); |
SchedulePaint(); |
} |