Fix text box offset passing in LayoutText::PositionForPoint
CreatePositionWithAffinityForBoxAfterAdjustingOffsetForBiDi() expects an |offset| in range from 0 to box length. However, a call site in LayoutText::PositionForPoint() incorrectly adds |box->Start()| to it, causing out of range offsets. This patch fixes it. Haven't found any incorrect behavior in wild due to this bug, but it's an obvious bug so let's still fix it... Change-Id: Id7deb528b18aa4c36d0a18bb564ede3dcc138110 Reviewed-on: https://chromium-review.googlesource.com/c/1289684 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#600954}
Showing
Please register or sign in to comment