| Summary: | Test passing in offset for searchFunction. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Megan Gardner <megan_gardner> | ||||
| Component: | New Bugs | Assignee: | Megan Gardner <megan_gardner> | ||||
| Status: | RESOLVED INVALID | ||||||
| Severity: | Normal | CC: | darin, ews-watchlist, mifenton | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Megan Gardner
2022-03-29 16:16:35 PDT
Created attachment 456077 [details]
Patch
Comment on attachment 456077 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456077&action=review Looks right. > Source/WebCore/editing/VisibleUnits.cpp:1073 > - return ubrk_preceding(sentenceBreakIterator(text), text.length()); > + return ubrk_preceding(sentenceBreakIterator(text), offset); Do we need to clamp the offset so to guarantee it’s <= length? > Source/WebCore/editing/VisibleUnits.cpp:1096 > - return ubrk_preceding(sentenceBreakIterator(text), text.length()); > + return ubrk_preceding(sentenceBreakIterator(text), offset); Same question. Failed experiment. |