Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UnifiedPDF: Lookup pill has the wrong font size
https://bugs.webkit.org/show_bug.cgi?id=270835 rdar://123667947 Reviewed by Abrar Rahman Protyasha and Simon Fraser. Adopt TextIndicator for all UnifiedPDF text indication paths (Lookup from force-press and from the context menu, in addition to the existing find-in-page case). * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::showDefinitionForAttributedString): (WebKit::PDFPlugin::textForImmediateActionHitTestAtPoint): (WebKit::PDFPlugin::lookupTextAtLocation): Deleted. * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: (WebKit::PDFPluginBase::textIndicatorForCurrentSelection): (WebKit::PDFPluginBase::textIndicatorForSelection): Deleted. * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: (WebKit::PDFPluginBase::performImmediateActionHitTestAtLocation): (WebKit::PDFPluginBase::dictionaryPopupInfoForSelection): Move this PDFPlugin-specific code here from WebPageMac. * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm: (WebKit::UnifiedPDFPlugin::performContextMenuAction): (WebKit::UnifiedPDFPlugin::textIndicatorForCurrentSelection): (WebKit::UnifiedPDFPlugin::textIndicatorForSelection): (WebKit::UnifiedPDFPlugin::performDictionaryLookupAtLocation): (WebKit::UnifiedPDFPlugin::dictionaryPopupInfoForSelection): (WebKit::UnifiedPDFPlugin::showDefinitionForSelection): (WebKit::UnifiedPDFPlugin::textForImmediateActionHitTestAtPoint): Share more code between find and lookup. (WebKit::UnifiedPDFPlugin::searchInDictionary): Deleted. (WebKit::UnifiedPDFPlugin::showDefinitionForAttributedString): Deleted. (WebKit::UnifiedPDFPlugin::lookupTextAtLocation): Deleted. * Source/WebKit/WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::textIndicatorForCurrentSelection): (WebKit::PluginView::performImmediateActionHitTestAtLocation const): (WebKit::PluginView::textIndicatorForSelection): Deleted. (WebKit::PluginView::lookupTextAtLocation const): Deleted. * Source/WebKit/WebProcess/Plugins/PluginView.h: Get rid of LookupTextResult. * Source/WebKit/WebProcess/WebPage/FindController.cpp: (WebKit::FindController::updateFindIndicator): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::performImmediateActionHitTestAtLocation): (WebKit::WebPage::dictionaryPopupInfoForSelectionInPDFPlugin): Deleted. Canonical link: https://commits.webkit.org/275994@main
- Loading branch information
1 parent
94f1c31
commit 92a81df
Showing
11 changed files
with
104 additions
and
120 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
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
Oops, something went wrong.