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 2e8880437c65f5b64df82a3c5e0324729f8a471a..4088f80fc7834fa01dd7b6ff369a81ad0e750670 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 |
@@ -21,7 +21,7 @@ |
#include "chrome/browser/ui/views/theme_image_mapper.h" |
#include "chrome/common/chrome_constants.h" |
#include "ui/base/theme_provider.h" |
-#include "ui/gfx/win/dpi.h" |
+#include "ui/gfx/screen_win.h" |
#include "ui/views/controls/menu/native_menu_win.h" |
#pragma comment(lib, "dwmapi.lib") |
@@ -318,7 +318,8 @@ MARGINS BrowserDesktopWindowTreeHostWin::GetDWMFrameMargins() const { |
if (!browser_view_->IsFullscreen()) { |
gfx::Rect tabstrip_bounds( |
browser_frame_->GetBoundsForTabStrip(browser_view_->tabstrip())); |
- tabstrip_bounds = gfx::win::DIPToScreenRect(tabstrip_bounds); |
+ tabstrip_bounds = gfx::ScreenWin::DIPToClientRect(GetHWND(), |
+ tabstrip_bounds); |
margins.cyTopHeight = tabstrip_bounds.bottom(); |
// On pre-Win 10, we need to offset the DWM frame into the toolbar so that |