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

Unified Diff: chrome/browser/views/frame/browser_frame.cc

Issue 60003: Merge r12930.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 9 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 | « no previous file | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_frame.cc
===================================================================
--- chrome/browser/views/frame/browser_frame.cc (revision 12934)
+++ chrome/browser/views/frame/browser_frame.cc (working copy)
@@ -165,6 +165,15 @@
UpdateDWMFrame();
+ // Non-client metrics such as the window control positions may change as a
+ // result of us processing this message so we need to re-layout the frame view
+ // which may position items (such as the distributor logo) based on these
+ // metrics. We only do this once the non-client view has been properly
+ // initialized and added to the view hierarchy.
+ views::NonClientView* non_client_view = GetNonClientView();
+ if (non_client_view && non_client_view->GetParent())
+ non_client_view->LayoutFrameView();
+
// We'd like to return WVR_REDRAW in some cases here, but because we almost
// always have nonclient area (except in fullscreen mode, where it doesn't
// matter), we can't. See comments in window.cc:OnNCCalcSize() for more info.
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698