Stop CaretDisplayItemClient from crashing when no LocalCaretRect is found
There is no guarantee that LocalCaretRectOfPosition() never returns a non-null LayoutObject. Instead, callers should handle the null result to avoid crashing. This patch adds handling to CaretDisplayItemClient::ComputeCaretRect(). Bug: 881613 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I1845b29a0cd43fb189a13561ee83c3641320df3c Reviewed-on: https://chromium-review.googlesource.com/1217072Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#590142}
Showing
Please register or sign in to comment