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

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

Issue 124553006: Nukes Link::OnPaint, it's not needed and causes double focus border (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « ui/views/controls/link.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 6223b51c51f223ea614e54ea2496e3bc84258fbf..f504a4879f8143f7cf16137a0252bd2e37a5b267 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -148,13 +148,6 @@ void Link::OnEnabledChanged() {
View::OnEnabledChanged();
}
-void Link::OnPaint(gfx::Canvas* canvas) {
- Label::OnPaint(canvas);
-
- if (HasFocus())
- canvas->DrawFocusRect(GetLocalBounds());
-}
-
void Link::OnFocus() {
Label::OnFocus();
// We render differently focused.
« no previous file with comments | « ui/views/controls/link.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698