Fix ComputeInlineBoxPosition crash when after BR and next line has no leaf child
ComputeInlineBoxPosition() handles after-BR positions by looking into the first leaf child of the next line, which crashes if the next line has no leaf child. This patch changes the function to iteratively check the succeeding lines until we find a line with leaf child, to stop the crash and make the behavior saner. Bug: 835779 Change-Id: Iafd04aaf467a8e53c92cb0d36ab291ff3627e67e Reviewed-on: https://chromium-review.googlesource.com/1024799Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#552999}
Showing
Please register or sign in to comment