Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f6bafe0860990a7720218e788b6f76386370937a
https://github.com/WebKit/WebKit/commit/f6bafe0860990a7720218e788b6f76386370937a
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2024-06-05 (Wed, 05 Jun 2024)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/PageZoom.mm
M Tools/WebKitTestRunner/mac/UIScriptControllerMac.h
M Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm
Log Message:
-----------
[macOS] WKWebView should have SPI to report the minimum magnification
https://bugs.webkit.org/show_bug.cgi?id=275183
rdar://129305819
Reviewed by Aditya Keerthi.
273725@main allows plugins to vend minimum scales =/= 1. We should allow
clients to be able to consult this minimum scale, rather than assuming
that the minimum should be 1.
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm:
(-[WKWebView minimumMagnification]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/PageZoom.mm:
(TestWebKitAPI::TEST(WKWebView, MinimumMagnification)):
(TestWebKitAPI::TEST(WKWebView, MinimumMagnificationPDF)):
Test that the minimum magnification values reported by the SPI track.
* Tools/WebKitTestRunner/mac/UIScriptControllerMac.h:
* Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm:
(WTR::UIScriptControllerMac::minimumZoomScale const):
Not strictly required for the testing done in this patch, but nice to
get this plumbing out of the way anyway.
Canonical link: https://commits.webkit.org/279762@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes