Enable rewind-loop detector in NGLineBreaker in non-DCHECK builds
Currently the infinite rewind loop does not frequently occur, but it exists, and recent issues indicated that minor changes may hit it. This patch enables the rewind-loop detector added for DCHECK-builds in r696740 crrev.com/c/1801474 for non- DCHECK-builds. When it hits, it fires |NOTREACHED| and end the line breaker. This patch also fixes the detector not to misfire when rewinding to index 0 by using |Optional|. Bug: 1132811 Change-Id: Idc4a8de5484b8f2df90b7f8525139ae99be6b9aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498983Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#821075}
Showing
Please register or sign in to comment