[webkit-changes] [WebKit/WebKit] 50c174: [Win] Update intrinsic device scale factor dynamic...

Kohei Asano noreply at github.com
Fri Jun 14 00:58:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 50c1741732a33548a144c043375f433523104f47
      https://github.com/WebKit/WebKit/commit/50c1741732a33548a144c043375f433523104f47
  Author: Kohei Asano <Kohei.Asano at sony.com>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    M Source/WebKit/UIProcess/Inspector/win/WebInspectorUIProxyWin.cpp
    M Source/WebKit/UIProcess/win/WebView.cpp

  Log Message:
  -----------
  [Win] Update intrinsic device scale factor dynamically
https://bugs.webkit.org/show_bug.cgi?id=274377

Reviewed by Fujii Hironori.

When intrinsic device scale factor dynamically is changed, i.e. moving
between different displays, we need to change intrinsic device scale
factor and repaint contents.
For main web contents, although WebView can't receive WM_DPICHANGED by
default, it's sufficient to update on WM_SIZE handler
because MainWindow's WM_DPICHANGED handling contains resizing window.
Above change also enables WebInspector resize when receiving WM_DPICHANGED,
just as MainWindow does.

    * Source\WebKit\UIProcess\Inspector\win\WebInspectorUIProxyWin.cpp:
    * Source\WebKit\UIProcess\win\WebView.cpp:

Canonical link: https://commits.webkit.org/280003@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list