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

Unified Diff: chrome/browser/ui/views/frame/browser_header_painter_ash.cc

Issue 271913002: Animate window control changes in TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/ui/views/frame/browser_header_painter_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
index be2dbc75e27497608f0689bf925628f852811823..13cbd52792e6f43d66833b8eb0c24a3e115c3991 100644
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
@@ -232,7 +232,6 @@ void BrowserHeaderPainterAsh::LayoutHeader() {
painted_height_ = -1;
UpdateCaptionButtonImages();
- caption_button_container_->Layout();
gfx::Size caption_button_container_size =
caption_button_container_->GetPreferredSize();
@@ -241,6 +240,7 @@ void BrowserHeaderPainterAsh::LayoutHeader() {
0,
caption_button_container_size.width(),
caption_button_container_size.height());
+ caption_button_container_->Layout();
if (window_icon_) {
// Vertically center the window icon with respect to the caption button
« no previous file with comments | « ash/frame/default_header_painter.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698