Index: ui/views/controls/label.cc |
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc |
index bf26f1e8be52fb18a1bcea5a9a7f075042561181..b75e34c87631380cf5a172531dd5a5d1bf06f49d 100644 |
--- a/ui/views/controls/label.cc |
+++ b/ui/views/controls/label.cc |
@@ -213,7 +213,7 @@ base::string16 Label::GetDisplayTextForTesting() { |
gfx::Insets Label::GetInsets() const { |
gfx::Insets insets = View::GetInsets(); |
- if (focus_behavior() == FocusBehavior::ALWAYS) { |
+ if (focus_behavior() != FocusBehavior::NEVER) { |
insets += gfx::Insets(kFocusBorderPadding, kFocusBorderPadding, |
kFocusBorderPadding, kFocusBorderPadding); |
} |
@@ -435,7 +435,7 @@ void Label::MaybeBuildRenderTextLines() { |
return; |
gfx::Rect rect = GetContentsBounds(); |
- if (focus_behavior() == FocusBehavior::ALWAYS) |
+ if (focus_behavior() != FocusBehavior::NEVER) |
rect.Inset(kFocusBorderPadding, kFocusBorderPadding); |
if (rect.IsEmpty()) |
return; |