From 6fd4bb27e3d82c2cee3919638fcefb7911a69d93 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 6 May 2021 20:29:36 +0900 Subject: [PATCH] fix: drag region BrowserView calculations on macOS (#29019) Co-authored-by: Shelley Vohr --- shell/browser/native_browser_view_mac.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/browser/native_browser_view_mac.mm b/shell/browser/native_browser_view_mac.mm index ce0e3ff8891b7..8a6ad5b1b736c 100644 --- a/shell/browser/native_browser_view_mac.mm +++ b/shell/browser/native_browser_view_mac.mm @@ -347,9 +347,7 @@ - (void)drawDebugRect:(NSRect)aRect { std::vector drag_exclude_rects; if (draggable_regions_.empty()) { - const auto bounds = GetBounds(); - drag_exclude_rects.emplace_back(bounds.x(), bounds.y(), webViewWidth, - webViewHeight); + drag_exclude_rects.emplace_back(0, 0, webViewWidth, webViewHeight); } else { drag_exclude_rects = CalculateNonDraggableRegions( DraggableRegionsToSkRegion(draggable_regions_), webViewWidth,