-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnifiedPDF] Text annotation HTML inputs do not get repositioned or s…
…caled when zooming https://bugs.webkit.org/show_bug.cgi?id=268360 rdar://121907350 Reviewed by Tim Horton. UnifiedPDFPlugin was incorrectly returning the annotation bounds in document space when the PDFPluginAnnotation was expecting the bounds in plugin view space. Fix this by providing the bounds in the correct coordinate space so that it can update its geomtetry correctly. This requires that PDFPluginAnnotation stops subtracting out the scroll positions since this is part of the document to plugin space translation. The size of the annotation should be determined with both the document fitting sale and the zoom scale. Also rename boundsForannotation to pluginBoundsForAnnotation to make it clear what coordinate space this function is returning geometry in. * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::pluginBoundsForAnnotation const): (WebKit::PDFPlugin::boundsForAnnotation const): Deleted. * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginAnnotation.mm: (WebKit::PDFPluginAnnotation::updateGeometry): * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm: (WebKit::UnifiedPDFPlugin::convertFromDocumentToPlugin const): (WebKit::UnifiedPDFPlugin::pluginBoundsForAnnotation const): (WebKit::UnifiedPDFPlugin::boundsForAnnotation const): Deleted. Canonical link: https://commits.webkit.org/274038@main
- Loading branch information
Showing
6 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters