Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: eb3399bb2c9b06b232eb049c1f2a7ff9cb86f6b7 https://github.com/WebKit/WebKit/commit/eb3399bb2c9b06b232eb049c1f2a7ff9cb86f6b7 Author: Simon Fraser <simon.fra...@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes