[Spellchecker] Santize state maintenance in cold mode spellchecker
This patch changes ColdModeSpellCheckRequester to store a Range instead of Position to memorize the checking progress, so that the state is less vulnerable to DOM changes. It also adds more data validity check to make sure that the class is in a valid state when calling RequestCheckingForNextChunk(). Bug: 862932 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I15b71545fad68b1061c2d075f56d849f1ef8e009 Reviewed-on: https://chromium-review.googlesource.com/1135899 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#575014}
Showing
Please register or sign in to comment