commit | 47564c7bf17d2fd560b4390ba714d19d4d9e2550 | [log] [tgz] |
---|---|---|
author | xiaochengh <xiaochengh@chromium.org> | Thu Apr 27 05:54:35 2017 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 27 05:54:35 2017 |
tree | cea0b3084aab04ba398b5a474c7196bb2ed69fab | |
parent | a1db173fa4473293335929920dcb90c13f2390d4 [diff] |
[Idle time spell checker] Correct position passed from undo stack Idle time spell checker fetches positions to check from undo stack, but the positions can be invalid since undo stack can store stale information. This patch corrects the position before calculating the checking range, so that we don't pass an invalid position to TextIterator, and hence, fixes the crash. BUG=715107 Review-Url: https://codereview.chromium.org/2845863002 Cr-Commit-Position: refs/heads/master@{#467596}