Index: chrome/browser/ui/views/frame/browser_frame_win.cc |
diff --git a/chrome/browser/ui/views/frame/browser_frame_win.cc b/chrome/browser/ui/views/frame/browser_frame_win.cc |
index ee3a0b723b515b61b1da7618888f674c9c59364a..be2f95001b9295123ec0726ad50c439869d9f4fa 100644 |
--- a/chrome/browser/ui/views/frame/browser_frame_win.cc |
+++ b/chrome/browser/ui/views/frame/browser_frame_win.cc |
@@ -177,10 +177,9 @@ bool BrowserFrameWin::GetClientAreaInsets(gfx::Insets* insets) const { |
} |
void BrowserFrameWin::HandleFrameChanged() { |
- // We need to update the glass region on or off before the base class adjusts |
- // the window region. |
- UpdateDWMFrame(); |
+ // Handle window frame layout changes, then set the updated glass region. |
NativeWidgetWin::HandleFrameChanged(); |
+ UpdateDWMFrame(); |
} |
bool BrowserFrameWin::PreHandleMSG(UINT message, |
@@ -455,7 +454,7 @@ void BrowserFrameWin::UpdateDWMFrame() { |
} |
// In maximized mode, we only have a titlebar strip of glass, no side/bottom |
// borders. |
- if (!browser_view_->IsFullscreen()) { |
+ if (!IsFullscreen()) { |
gfx::Rect tabstrip_bounds( |
browser_frame_->GetBoundsForTabStrip(browser_view_->tabstrip())); |
margins.cyTopHeight = tabstrip_bounds.bottom() + kDWMFrameTopOffset; |