| Index: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
|
| index 78994e84364171a5a32b1e034ba7da8e871b502c..ea89f608e24d9bf26679a314e03a34a6fd1e413b 100644
|
| --- a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
|
| @@ -160,19 +160,15 @@ void BrowserDesktopWindowTreeHostWin::PostHandleMSG(UINT message,
|
| UpdateDWMFrame();
|
|
|
| // Windows lies to us about the position of the minimize button before a
|
| - // window is visible. We use this position to place the OTR avatar in RTL
|
| - // mode, so when the window is shown, we need to re-layout and schedule a
|
| - // paint for the non-client frame view so that the icon top has the
|
| - // correct
|
| - // position when the window becomes visible. This fixes bugs where the
|
| - // icon
|
| - // appears to overlay the minimize button.
|
| - // Note that we will call Layout every time SetWindowPos is called with
|
| - // SWP_SHOWWINDOW, however callers typically are careful about not
|
| - // specifying this flag unless necessary to avoid flicker.
|
| - // This may be invoked during creation on XP and before the
|
| - // non_client_view
|
| - // has been created.
|
| + // window is visible. We use this position to place the incognito avatar
|
| + // in RTL mode, so when the window is shown, we need to re-layout and
|
| + // schedule a paint for the non-client frame view so that the icon top has
|
| + // the correct position when the window becomes visible. This fixes bugs
|
| + // where the icon appears to overlay the minimize button. Note that we
|
| + // will call Layout every time SetWindowPos is called with SWP_SHOWWINDOW,
|
| + // however callers typically are careful about not specifying this flag
|
| + // unless necessary to avoid flicker. This may be invoked during creation
|
| + // on XP and before the non_client_view has been created.
|
| WINDOWPOS* window_pos = reinterpret_cast<WINDOWPOS*>(l_param);
|
| if (window_pos->flags & SWP_SHOWWINDOW &&
|
| GetWidget()->non_client_view()) {
|
|
|