mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
browser(webkit): disable high DPI support in Web Process on Windows (#3160)
This commit is contained in:
parent
86b64a2311
commit
90ff66710b
@ -1,2 +1,2 @@
|
|||||||
1318
|
1319
|
||||||
Changed: yurys@chromium.org Fri Jul 24 20:46:33 GMTST 2020
|
Changed: yurys@chromium.org Fri Jul 24 23:00:52 GMTST 2020
|
||||||
|
|||||||
@ -14951,6 +14951,21 @@ index 43524986d4e585fe0247b44a4e596e589509c895..9b1a2d1cd3ede6d41290f08e7244b081
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WebProcess::initializeConnection(IPC::Connection* connection)
|
void WebProcess::initializeConnection(IPC::Connection* connection)
|
||||||
|
diff --git a/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp b/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp
|
||||||
|
index 89bc159df35910abe133c68d71057cdfe1995cbb..aba8e9110a3ec4c59e9888b148e1e908d477cbe4 100644
|
||||||
|
--- a/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp
|
||||||
|
+++ b/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp
|
||||||
|
@@ -42,7 +42,9 @@ public:
|
||||||
|
bool platformInitialize() override
|
||||||
|
{
|
||||||
|
if (SetProcessDpiAwarenessContextPtr())
|
||||||
|
- SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
||||||
|
+ // Playwright begin
|
||||||
|
+ SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_UNAWARE);
|
||||||
|
+ // Playwright end
|
||||||
|
else
|
||||||
|
SetProcessDPIAware();
|
||||||
|
return true;
|
||||||
diff --git a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm b/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
|
diff --git a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm b/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
|
||||||
index 111cf8bdc29dc61e28f822e957b93882a42799a5..9161de60dc307536a0204d2dec280c2b966c56f0 100644
|
index 111cf8bdc29dc61e28f822e957b93882a42799a5..9161de60dc307536a0204d2dec280c2b966c56f0 100644
|
||||||
--- a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
|
--- a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user