Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: ui/views/controls/label.cc

Issue 816223004: [Merge to M-41 2272]: views::Label: Invalidate cached draw flags when background color is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2272
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index a90aec4042e2782125dbbe47bae88963b4d040d2..783421acc3648f05f1bd0647325260da12a3eb2e 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -108,6 +108,7 @@ void Label::SetBackgroundColor(SkColor color) {
background_color_ = color;
background_color_set_ = true;
RecalculateColors();
+ cached_draw_params_.text.clear();
}
void Label::SetShadows(const gfx::ShadowValues& shadows) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698