[webkit-changes] [WebKit/WebKit] eb3399: [UnifiedPDF] Fix hit-testing when zoomed
Simon Fraser
noreply at github.com
Tue Jan 30 08:49:40 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eb3399bb2c9b06b232eb049c1f2a7ff9cb86f6b7
https://github.com/WebKit/WebKit/commit/eb3399bb2c9b06b232eb049c1f2a7ff9cb86f6b7
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2024-01-30 (Tue, 30 Jan 2024)
Changed paths:
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm
Log Message:
-----------
[UnifiedPDF] Fix hit-testing when zoomed
https://bugs.webkit.org/show_bug.cgi?id=268357
rdar://121903219
Reviewed by Tim Horton.
Factor the side padding computation into its own function.
Fix `UnifiedPDFPlugin::convertFromPluginToDocument()` to take side padding and scale factor
into account. Add some logging.
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h:
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::setPageScaleFactor):
(WebKit::UnifiedPDFPlugin::sidePaddingWidth const):
(WebKit::UnifiedPDFPlugin::convertFromPluginToDocument const):
(WebKit::operator<<):
(WebKit::UnifiedPDFPlugin::pdfElementTypesForPluginPoint const):
Canonical link: https://commits.webkit.org/273758@main
More information about the webkit-changes
mailing list