Bug 274377
Summary: | [Win] Update intrinsic device scale factor dynamically | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kohei Asano <kohei.asano> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | fujii.hironori, kkinnunen, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | PC | ||
OS: | Windows 10 |
Kohei Asano
Rendering with device scale factor for high DPI, https://bugs.webkit.org/show_bug.cgi?id=196339, requires re-scaling on dynamic device scale factor changes, e.g. moving a window between different displays. The appropriate winapi message to do this is WM_DPICHANGED, that MainWindow handles on https://github.com/WebKit/WebKit/blob/d48be59b226a3da86b16e3948e08db42c6637263/Tools/MiniBrowser/win/MainWindow.cpp#L392. But it couldn't be caught on WebView. We need to propagate WM_DPICHANGED from MainWindow to WebView.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/128777848>
Kohei Asano
We noticed it's not necessary to propagate WM_DPICHANGED, we can do on WM_SIZE instead. I renamed title.
Kohei Asano
Pull request: https://github.com/WebKit/WebKit/pull/29810
EWS
Committed 280003@main (50c1741732a3): <https://commits.webkit.org/280003@main>
Reviewed commits have been landed. Closing PR #29810 and removing active labels.