[webkit-changes] [WebKit/WebKit] 690223: [GTK][WPE] Device scale factor not applied if chan...
Carlos Garcia Campos
noreply at github.com
Wed Jul 19 02:54:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 690223fa5be1bd5bfc14c0aa602a7c751a85619a
https://github.com/WebKit/WebKit/commit/690223fa5be1bd5bfc14c0aa602a7c751a85619a
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2023-07-19 (Wed, 19 Jul 2023)
Changed paths:
M Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
M Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
Log Message:
-----------
[GTK][WPE] Device scale factor not applied if changed at runtime
https://bugs.webkit.org/show_bug.cgi?id=259334
Reviewed by Alejandro G. Castro.
The problem is that the viewport size is the scaled size based on the
device scale factor, but when only scale factor changes, we don't update
the viewport size.
* Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::setScaleFactor): Deleted.
* Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::deviceOrPageScaleFactorChanged): Call ThreadedCompositor::setViewportSize().
Canonical link: https://commits.webkit.org/266157@main
More information about the webkit-changes
mailing list