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 15071002: WIP - loop in LayoutManager for preferred size changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scoped layouter Created 7 years, 7 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/message_center/views/message_popup_bubble.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('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 8a08d245405e5f50f667134abc67dd06f3fe477b..ae8f4d879a1848189a72e5b9dc8c2e0caa8f7722 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -111,7 +111,7 @@ gfx::HorizontalAlignment LabelButton::GetHorizontalAlignment() const {
void LabelButton::SetHorizontalAlignment(gfx::HorizontalAlignment alignment) {
label_->SetHorizontalAlignment(alignment);
- InvalidateLayout();
+ Layout();
}
void LabelButton::SetIsDefault(bool is_default) {
@@ -152,7 +152,7 @@ void LabelButton::SetStyle(ButtonStyle style) {
label_->SetShadowOffset(0, 1);
}
// Invalidate the layout to pickup the new insets from the border.
- InvalidateLayout();
+ Layout();
ResetColorsFromNativeTheme();
}
« no previous file with comments | « ui/message_center/views/message_popup_bubble.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698