Work around reversed word range in DocumentMarkerController::FirstMarkerAroundPosition
There are some crashes in the function due to legacy implemetation of StartOfWord() creating invalid/legacy positions, which lead to reversed word ranges. This patch adds handling of reversed word ranges so that we don't crash, before switching StartOfWord() to proper implementation. Bug: 886589 Change-Id: I8ad988247c6e4ab4a4a7cf90675d7df5f326f56f Reviewed-on: https://chromium-review.googlesource.com/c/1298018Reviewed-by:Nektarios Paisios <nektar@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#602474}
Showing
Please register or sign in to comment