Title: [247897] trunk/Source/WebKitLegacy/win
Revision
247897
Author
[email protected]
Date
2019-07-28 19:07:18 -0700 (Sun, 28 Jul 2019)

Log Message

[Win][WK1] Can't change Web Inspector frontend height in high DPI
https://bugs.webkit.org/show_bug.cgi?id=200153

Reviewed by Don Olmstead.

* WebCoreSupport/WebInspectorClient.cpp:
(WebInspectorFrontendClient::setAttachedWindowHeight):
Applied deviceScaleFactor to the argument height.

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/win/ChangeLog (247896 => 247897)


--- trunk/Source/WebKitLegacy/win/ChangeLog	2019-07-29 02:03:32 UTC (rev 247896)
+++ trunk/Source/WebKitLegacy/win/ChangeLog	2019-07-29 02:07:18 UTC (rev 247897)
@@ -1,3 +1,14 @@
+2019-07-28  Fujii Hironori  <[email protected]>
+
+        [Win][WK1] Can't change Web Inspector frontend height in high DPI
+        https://bugs.webkit.org/show_bug.cgi?id=200153
+
+        Reviewed by Don Olmstead.
+
+        * WebCoreSupport/WebInspectorClient.cpp:
+        (WebInspectorFrontendClient::setAttachedWindowHeight):
+        Applied deviceScaleFactor to the argument height.
+
 2019-07-26  Konstantin Tokarev  <[email protected]>
 
         [Win] Remove unused methods from WebPluginInfoProvider

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp (247896 => 247897)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp	2019-07-29 02:03:32 UTC (rev 247896)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp	2019-07-29 02:07:18 UTC (rev 247897)
@@ -336,6 +336,7 @@
     int hostWindowHeight = hostWindowRect.bottom;
     int webViewWidth = inspectedRect.right - inspectedRect.left;
     int webViewHeight = frontendRect.bottom + inspectedRect.bottom;
+    height *= m_inspectedWebView->deviceScaleFactor();
 
     SetWindowPos(m_frontendWebViewHwnd, 0, 0, hostWindowHeight - height, webViewWidth, height, SWP_NOZORDER);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to