| Summary: | [iOS] Add support for _UITextSearchOptions when finding a string | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Aditya Keerthi <akeerthi> | ||||||
| Component: | WebKit API | Assignee: | Aditya Keerthi <akeerthi> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | hi, megan_gardner, thorton, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | 233915 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Aditya Keerthi
2021-12-07 16:17:59 PST
Created attachment 446250 [details]
Patch
Patch will not apply until https://bugs.webkit.org/show_bug.cgi?id=233915 is landed, but this is ready for review. Comment on attachment 446250 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446250&action=review r=me! (assuming EWS is happy with this, after #233915 lands) > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9970 > + findOptions.add(WebKit::FindOptions::AtWordStarts); > + findOptions.add(WebKit::FindOptions::AtWordEnds); Nit - I think you can just do `.add({ WebKit::FindOptions::AtWordStarts, WebKit::FindOptions::AtWordEnds });` here. (In reply to Wenson Hsieh from comment #4) > Comment on attachment 446250 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=446250&action=review > > r=me! (assuming EWS is happy with this, after #233915 lands) > > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9970 > > + findOptions.add(WebKit::FindOptions::AtWordStarts); > > + findOptions.add(WebKit::FindOptions::AtWordEnds); > > Nit - I think you can just do `.add({ WebKit::FindOptions::AtWordStarts, > WebKit::FindOptions::AtWordEnds });` here. Thanks for the review! Will make this change after #233915 lands. Created attachment 446289 [details]
Patch for landing
Committed r286660 (244973@main): <https://commits.webkit.org/244973@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446289 [details]. |