-
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.
[Cocoa] Find-in-page should match text inside image overlays
https://bugs.webkit.org/show_bug.cgi?id=226704 Reviewed by Tim Horton. Source/WebCore: Add a new TextIteratorBehavior to allow TextIterator to descend into image overlay content, and use this option when creating TextIterators for find-in-page. See WebKit/ChangeLog for more details. Test: WebKit.FindTextInImageOverlay * editing/TextIterator.cpp: (WebCore::TextIterator::handleReplacedElement): (WebCore::findIteratorOptions): * editing/TextIteratorBehavior.h: Source/WebKit: Add the `PaintAllContent` and `PaintBackgrounds` text indicator options when generating a TextIndicator for selected content inside an image overlay. See WebCore/ChangeLog for more details. * WebProcess/WebPage/FindController.cpp: (WebKit::FindController::updateFindIndicator): * WebProcess/WebPage/ios/FindControllerIOS.mm: (WebKit::findTextIndicatorOptions): (WebKit::FindIndicatorOverlayClientIOS::drawRect): (WebKit::FindController::updateFindIndicator): Tools: Add an API test to verify that text inside image overlays is visible to find-in-page. * TestWebKitAPI/Tests/WebKitCocoa/FindInPage.mm: Canonical link: https://commits.webkit.org/238558@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
105 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
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