[webkit-changes] [WebKit/WebKit] d09efa: [WPEPlatform] Restrict values used for screen outp...
Adrian Perez
noreply at github.com
Thu Feb 20 01:43:06 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d09efa1a1a10d4eecbef2317c29289161cdcd2e2
https://github.com/WebKit/WebKit/commit/d09efa1a1a10d4eecbef2317c29289161cdcd2e2
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: 2025-02-20 (Thu, 20 Feb 2025)
Changed paths:
M Source/WebKit/WPEPlatform/wpe/WPEScreen.cpp
M Source/WebKit/WPEPlatform/wpe/WPEView.cpp
Log Message:
-----------
[WPEPlatform] Restrict values used for screen output device scaling
https://bugs.webkit.org/show_bug.cgi?id=287955
Reviewed by Carlos Garcia Campos.
Limit the range of values accepted by the WPEScreen:scale (and its
companion WPEView:scale) to avoid unpractical values for the physical
output size. Allowing to scale in/out twenty times smaller/bigger ought
way more than enough for any use case.
* Source/WebKit/WPEPlatform/wpe/WPEScreen.cpp:
(wpe_screen_class_init): Limit WPEScreen:scale property to the [0.05, 20.0]
range.
(wpe_screen_set_scale): Add checks to ensure the requested scale is
within the allowed range.
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_class_init): Limit WPEView:scale property to the same range as
the WPEScreen:scale one.
Canonical link: https://commits.webkit.org/290696@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