Call |HandleTrailingSpaces| even if |shape_result| is nullptr
r796465 crrev.com/c/2344431 changed |HandleOverflow| to call |HandleTrailingSpaces| only if |shape_result| is not nullptr. crbug.com/1139513 found that this change caused M86 to hang. M87 and later has a new trailing space code in r807457 crrev.com/c/2412307 and that the symptom is not observed. However, this indicates that we may hang if we go to the codepath in any other conditions. This patch: 1. Reverts the behavior to M85/86. 2. Change the function to take the pointer of |shape_result| instead of ref to indicate it can be nullptr. |HandleTrailingSpaces| needs |shape_result| only under certain condition, and the current assumption is that the combination will not occur. Change-Id: Ide9f48e14657c8e3c893fd506fee8412216df25f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489730Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#819722}
Showing
Please register or sign in to comment