Simplify handling of out-of-bound end offset in PlainTextRange::CreateRangeFor()
This patch refactors the function, so that it uses distinct return paths for in-bound and out-of-bound end offsets, so that the code flow logic is cleaner. Bug: 828719 Change-Id: I5c4553b4e5480a2fcf0b2496e0153f648c002bb3 Reviewed-on: https://chromium-review.googlesource.com/999160 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#549283}
Showing
Please register or sign in to comment