Skip to content

Commit 37ad552

Browse files
authored
browser(webkit): allow windows larger than display on Win (#1888)
1 parent 0656771 commit 37ad552

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1200
1+
1201

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12223,7 +12223,7 @@ index 0000000000000000000000000000000000000000..135a60361fa8fbf907382625e7c8dd4e
1222312223
+} // namespace WebKit
1222412224
diff --git a/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp b/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp
1222512225
new file mode 100644
12226-
index 0000000000000000000000000000000000000000..520d9714bac279a8b778c2c377af4411fba8d5d7
12226+
index 0000000000000000000000000000000000000000..62b841fe1d0de2296e1c61e328cff564f5aa1c0f
1222712227
--- /dev/null
1222812228
+++ b/Source/WebKit/UIProcess/win/WebPageInspectorEmulationAgentWin.cpp
1222912229
@@ -0,0 +1,58 @@
@@ -12277,7 +12277,7 @@ index 0000000000000000000000000000000000000000..520d9714bac279a8b778c2c377af4411
1227712277
+ width += windowRect.right - windowRect.left - viewRect.right + viewRect.left;
1227812278
+ height += windowRect.bottom - windowRect.top - viewRect.bottom + viewRect.top;
1227912279
+
12280-
+ if (!SetWindowPos(windowHwnd, 0, 0, 0, width, height, SWP_NOMOVE)) {
12280+
+ if (!SetWindowPos(windowHwnd, 0, 0, 0, width, height, SWP_NOCOPYBITS | SWP_NOSENDCHANGING | SWP_NOMOVE)) {
1228112281
+ callback("Could not resize window");
1228212282
+ return;
1228312283
+ }

0 commit comments

Comments
 (0)