Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
[Merge to M-41 2272]: views::Label: Invalidate cached draw flags when…
Browse files Browse the repository at this point in the history
… background color is changed

>Transparency of the background color affects the result of |Label::ComputeDrawStringFlags()|.
>
>BUG=447932
>R=sky
>NOTRY=true
>
>Review URL: https://codereview.chromium.org/846853003
>
>Cr-Commit-Position: refs/heads/master@{#311088}

BUG=447932
TBR=sky

Review URL: https://codereview.chromium.org/816223004

Cr-Commit-Position: refs/branch-heads/2272@{#9}
Cr-Branched-From: 827a380-refs/heads/master@{#310958}
  • Loading branch information
cem committed Jan 14, 2015
1 parent 5c7105f commit a3e4f5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/views/controls/label.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3e4f5e

Please sign in to comment.