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

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

Issue 867003002: Cache gfx::RenderText instances in views::Label. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: early exit for Set... methods Created 5 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
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 52250cfac08d6e175be67dbd5dd031e1490b8747..367a383460ab570e853b4359387d54dcc1c81be5 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -155,7 +155,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) {

Powered by Google App Engine
This is Rietveld 408576698