DescriptionForce expandEnd/RangeToSentenceBoundary to return a valid EphemeralRange
This is a first-aid patch that make expandEnd/RangeToSentenceBoundary()
compare the sentence boundaries found with the input range before
returning, so that the returned range is always a super-range of
the input range, and hence, a valid EphemeralRange.
This patch does not fix the root cause of the bugs, as we do not expect startOfSentence()'s return value to be beyond that of endOfSentence()'s.
It simply stops the crashing at expandEnd/RangeToSentenceBoundary.
BUG=640905
TEST=n/a; this is a first-aid patch
Committed: https://crrev.com/5345d9cf9d3d0ad37cb56edd31aa0686d3ff22c5
Cr-Commit-Position: refs/heads/master@{#414624}
Patch Set 1 #
Messages
Total messages: 17 (12 generated)
|