From 37ad5528c4f5c886725332f9982a84de0e035913 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 20 Apr 2020 16:56:03 -0700 Subject: [PATCH] browser(webkit): allow windows larger than display on Win (#1888) --- browser_patches/webkit/BUILD_NUMBER | 2 +- browser_patches/webkit/patches/bootstrap.diff | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER index 59a3ec59b5357..44acfebd5026a 100644 --- a/browser_patches/webkit/BUILD_NUMBER +++ b/browser_patches/webkit/BUILD_NUMBER @@ -1 +1 @@ -1200 +1201 diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff index 0cdab793adf44..8687a3f0760d1 100644 --- a/browser_patches/webkit/patches/bootstrap.diff +++ b/browser_patches/webkit/patches/bootstrap.diff @@ -12223,7 +12223,7 @@ index 0000000000000000000000000000000000000000..135a60361fa8fbf907382625e7c8dd4e +} // namespace WebKit diff --git a/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp b/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp new file mode 100644 -index 0000000000000000000000000000000000000000..520d9714bac279a8b778c2c377af4411fba8d5d7 +index 0000000000000000000000000000000000000000..62b841fe1d0de2296e1c61e328cff564f5aa1c0f --- /dev/null +++ b/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp @@ -0,0 +1,58 @@ @@ -12277,7 +12277,7 @@ index 0000000000000000000000000000000000000000..520d9714bac279a8b778c2c377af4411 + width += windowRect.right - windowRect.left - viewRect.right + viewRect.left; + height += windowRect.bottom - windowRect.top - viewRect.bottom + viewRect.top; + -+ if (!SetWindowPos(windowHwnd, 0, 0, 0, width, height, SWP_NOMOVE)) { ++ if (!SetWindowPos(windowHwnd, 0, 0, 0, width, height, SWP_NOCOPYBITS | SWP_NOSENDCHANGING | SWP_NOMOVE)) { + callback("Could not resize window"); + return; + }