Test passing in offset for searchFunction.
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.