Convert LineEndpointComputationMode to template parameter in StartPositionForLine()
This patch changes |LineEndpointComputationMode| parameter to template parameter in |StartPositionForLine()| to avoid runtime checking of parameter and reducing source code size of body of |StartPositionForLine()| for improving readability. The patch[1] will do same thing for |EndPositionForLine()| and remove |LineEndpointComputationMode| enum. [1] http://crrev.com/c/882531 Convert Li Change-Id: I2345ff86d92423ba4dcf6852ec49b34e9563b31e Reviewed-on: https://chromium-review.googlesource.com/882791 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#531776}
Showing
Please register or sign in to comment