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

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

Issue 413823002: Cache gfx::RenderText instances in views::Label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/app_list/views/app_list_item_view.cc ('k') | ui/views/controls/label.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ee97918dc9f794c1d1189ffa3e570449e6c16f7..650ac56f8f35934d0f42b10e78f5b52d7c1a713f 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -136,7 +136,7 @@ void LabelButton::SetElideBehavior(gfx::ElideBehavior elide_behavior) {
}
gfx::HorizontalAlignment LabelButton::GetHorizontalAlignment() const {
- return label_->GetHorizontalAlignment();
+ return label_->horizontal_alignment();
}
void LabelButton::SetHorizontalAlignment(gfx::HorizontalAlignment alignment) {
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/views/controls/label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698