-
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] De-hoist "PDFView" coordinate conversion functions back …
…to PDFPlugin https://bugs.webkit.org/show_bug.cgi?id=265490 rdar://118906205 Reviewed by Wenson Hsieh and Simon Fraser. When I hoisted these, I left a FIXME to make sure they make sense. They don't. We don't have any Y flip in UnifiedPDFPlugin. Move them back to PDFPlugin and add the "PluginToRootView" methods that we really needed. Also rename frameForHUD to be clear about the coordinate space. * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::convertFromPluginToPDFView const): (WebKit::PDFPlugin::convertFromPDFViewToRootView const): (WebKit::PDFPlugin::convertFromRootViewToPDFView const): (WebKit::PDFPlugin::convertFromPDFViewToScreen const): * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: (WebKit::PDFPluginBase::visibilityDidChange): (WebKit::PDFPluginBase::convertFromRootViewToPlugin const): (WebKit::PDFPluginBase::convertFromPluginToRootView const): (WebKit::PDFPluginBase::updatePDFHUDLocation): (WebKit::PDFPluginBase::frameForHUDInRootViewCoordinates const): (WebKit::PDFPluginBase::convertFromPluginToPDFView const): Deleted. (WebKit::PDFPluginBase::convertFromPDFViewToRootView const): Deleted. (WebKit::PDFPluginBase::convertFromRootViewToPDFView const): Deleted. (WebKit::PDFPluginBase::convertFromPDFViewToScreen const): Deleted. (WebKit::PDFPluginBase::frameForHUD const): Deleted. Canonical link: https://commits.webkit.org/271253@main
- Loading branch information
1 parent
49e6e87
commit 47696ba
Showing
4 changed files
with
55 additions
and
37 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