[webkit-changes] [WebKit/WebKit] 9730bd: [UnifiedPDF] HTML text annotations need to conside...
Sammy Gill
noreply at github.com
Wed Feb 7 13:16:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9730bdcb3f50d7e6eb221c0546fea1a916975a4b
https://github.com/WebKit/WebKit/commit/9730bdcb3f50d7e6eb221c0546fea1a916975a4b
Author: Sammy Gill <sammy.gill at apple.com>
Date: 2024-02-07 (Wed, 07 Feb 2024)
Changed paths:
M Source/WebKit/WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h
Log Message:
-----------
[UnifiedPDF] HTML text annotations need to consider document layout scale factor
https://bugs.webkit.org/show_bug.cgi?id=268847
rdar://118550829
Reviewed by Tim Horton.
UnifiedPDF has two different scale factors: one scale based on the
size of the largest page and the available width and one based on
zooming. HTML text annotations currently only consider the latter when
determining the font size but should consider both.
* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
(WebKit::PDFPluginTextAnnotation::updateGeometry):
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h:
Canonical link: https://commits.webkit.org/274241@main
More information about the webkit-changes
mailing list