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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 11262002: Merge TextButton and LabelButton border images util structs, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename BorderImages and const image id arrays, etc. Created 8 years, 2 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
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index d2c6a3e2c344650506fc9f40e1a33ad3d18ba01e..0ce17aee68c82c2414577c7b3a20d4a36f5b392b 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -34,7 +34,7 @@ LabelButton::LabelButton(ButtonListener* listener, const string16& text)
label_(new Label(text)),
default_button_(false),
native_theme_(false) {
- set_border(new LabelButtonBorder(this));
+ set_border(new LabelButtonBorder());
// Inset the button focus rect from the actual border; roughly match Windows.
set_focus_border(FocusBorder::CreateDashedFocusBorder(3, 3, 3, 3));
SetAnimationDuration(kHoverAnimationDurationMs);

Powered by Google App Engine
This is Rietveld 408576698